how to print output in python code example

Example 1: how to print in python

print("hello world")

Example 2: how to use print in python

string_to_print = "Hello World"
print(string_to_print)

Example 3: how to print in python

'''
print()inside the parentheses put a single colon or double colon 
'''
# example like this
print("this how you use print statement")
# or like this
print('other way to print in python')

Example 4: output something in python

print("Hello World!")

>>> Hello World!

Example 5: how to print something in python

print("dog")