Difference between revisions of "Print in Python"

From Interaction Station Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
   print("Hello World")
 
   print("Hello World")
  
 +
Print more than one object:
 +
 +
print("Hello", "how are you?")
 +
 
--------------------------
 
--------------------------
 
source: https://www.w3schools.com/python/ref_func_print.asp
 
source: https://www.w3schools.com/python/ref_func_print.asp

Revision as of 14:01, 28 August 2024

Python print() Function

Print a message

 print("Hello World")

Print more than one object:

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


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