python print to a string code example
Example 1: print string python
str1 = "Hello World"
print(str1)
Example 2: output something in python
print("Hello World!")
>>> Hello World!
str1 = "Hello World"
print(str1)
print("Hello World!")
>>> Hello World!