print python3 code example
Example 1: python print
# This is a print statement
print("Hello, world!")
Example 2: print python
#try it :)
print("Hello, world!")
#or
#you can print variable
name = "Harry"
print(name)
name = "Harry";print(name) #all on the same line
Example 3: print python
# Simple Print:
print("Hello World!")
# Formatting message in python3.6- :
name = "World"
print("Hello {}!".format(name))
# Formatting message in python3.7+ :
name = "World"
print(f"Hello {name}!")
Example 4: print python
#FR
str_one = "Hello, "
str_two = "world !"
print(str_one + str_two)
Example 5: python print
print('Message')
Example 6: print python
print('Hello, World!')