print string in python code example
Example 1: how to print something in python
print("whatever you want to print")
Example 2: how to print in python
print("hello world")
Example 3: python print
print("Hello, world!")
Example 4: print string python
str1 = "Hello World"
print(str1)
Example 5: print in python
print("Hello from the print statement!")
name = input("Enter a name :\n")
print(f"Your name is {name}")
print(1 + 2)
print(not True and not False)
Example 6: what is print in python
A print funtion is a way to print data in the console
use:
print("Hello World")
x = "Hello World"
print(x)
x = 5 + 5
print(str(x))