print function pytohn code example
Example 1: python print
# This is a print statement
print("Hello, world!")
Example 2: 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}!")