println python code example

Example 1: how do you use a print statement in python

print("What you would like to print")

Example 2: how to print on python

print("Write in here whatsoever you want to print")

Example 3: how to print python

print("Hello World")

Example 4: python print

#Normal:#
print("Hiya Grepper!") #Output: Hiya Grepper!#
#As Equation:#
print(1+1)  #Output: 2#
#With String Variables:#
x = 'Pog'
print(x + 'Champ') #Output: PogChamp#
#With Integer Variables:#
y = 9999
z = str(y)
print('You have ' + z + ' IQ') #Output: You have 9999 IQ#
#NOTE: Not converting the int variable to a str variable will return an error#

Example 5: 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 6: how to print in python

'''
print - > this is a statement
use brackets and quotation marks ("") or ('')
whatever you want to say put in the brackets
'''
print("Hello World")