Python: Print

By Xah Lee. Date: . Last updated: .

Simple print

use print to print any value.

print(3)
# 3

# print multiple values, and different types
print(3, "some", [1, 2])
# 3 some [1, 2]