1print("Hey! How are you doing?")
2
3## formatted string literal
4answer = "Well!"
5print(f"Hey! How are you doing? {answer}")
1# Simple Print:
2print("Hello World!")
3
4# Formatting message in python3.6- :
5name = "World"
6print("Hello {}!".format(name))
7
8# Formatting message in python3.7+ :
9name = "World"
10print(f"Hello {name}!")
1#('') a string, to indicate it is a string you can use ("") or ('')
2print("hello world")
3#a integer
4print(19)
5# a float:
6print(4.5)
7# a bool:
8print (True)
9print (False)
1def i_will_print_with_a_diffrent_function(x):
2 print(x)
3i_will_print_with_a_diffrent_function("my name")
1# the print commmand will write anything in your out put box
2print("hello world")
1words = 'Hello', 'World', 'Python', 'makes', 'life', 'easier'
2print(*words, sep='\n')