python print to stderr code example Example 1: print string python str1 = "Hello World" print(str1) Example 2: python print sta print("Hello World")