Flash cards
Review the key moves
What is the main idea behind Python Output Numbers?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
Which statement best captures the main point of this lesson?
Complete the missing token from the example code.
___(50000)Put the learning moves in the order that makes the concept easiest to apply.
Print Numbers
You can also use the print() function to display numbers:
However, unlike text, we don't put numbers inside quotes:
Example
print(3)
print(358)
print(50000)You can also do math inside the print() function:
Example
print(3 + 3)
print(2 * 5)Mix Text and Numbers
You can combine text and numbers in one output by separating them with a comma:
Example
print("I am", 35, "years old.")You will learn more about combining text and variables in the Python Variables and Python Strings chapters.