Reference:
print()
function prints the specified message to the screen, or other standard output device. The message can be a string, or any other object, the object will be converted into a string before written to the screen.Print a message onto the screen:
print("Hello World")
Output:
Hello World
Print more than one object:
print("Hello World", "Hello Python")
Output:
Hello World Hello Python
Print many messages:
# Display three messages
print("Welcome to Python")
print("Python is fun")
print("Problem Driven")
Output: