how to print in python 3 code example

Example 1: python print

# This is a print statement
print("Hello, world!")

Example 2: print python

print('Hello, world!')

Example 3: how to print in python

#a string, to indicate it is a string you can use ("") or ('')
print("hello world")
#a integer 
print(19)
# a float:
print(4.5)

Example 4: 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 5: print()

print("this is the print function!")

Example 6: print python 3

a = 3
print(a)

Tags:

Misc Example