command to print on display screen python code example
Example 1: how to print messages in python
print("Hello World!")
# You can also print other data types
print(True)
print(3.14)
# And, you can print multiple things at a time
print("Hello", "World!")
Example 2: print in python
words = 'Hello', 'World', 'Python', 'makes', 'life', 'easier'
print(*words, sep='\n')