print("hello world")
#a string, to indicate it is a string you can use ("") or ('') print("hello world") #a integer print(19) # a float: print(4.5)
''' 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')
# 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}!")
''' print - > this is a statement use brackets and quotation marks ("") or ('') whatever you want to say put in the brackets ''' print("Hello World")
A print funtion is a way to print data in the console use: print("Hello World") x = "Hello World" print(x) x = 5 + 5 print(str(x))
print("The text you want")
words = 'Hello', 'World', 'Python', 'makes', 'life', 'easier' print(*words, sep='\n')
# the print commmand will write anything in your out put box print("hello world")