Print in Python

From Interaction Station Wiki
Revision as of 14:08, 28 August 2024 by WangN (talk | contribs)
Jump to navigation Jump to search

Python print() Function

Print a message

 print("Hello World")

Print more than one object:

print("Hello", "how are you?")

Print string and int in one line:

print("x:" + str(2))
print("j:" + str(5))

source: https://www.w3schools.com/python/ref_func_print.asp