bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Python/Foundations
Python•Foundations

Python Output Numbers

Flash cards

Review the key moves

1/4
Core idea

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.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___(50000)
3Order

Put the learning moves in the order that makes the concept easiest to apply.

However, unlike text, we don't put numbers inside quotes:
You can also use the print() function to display numbers:
Mix Text and Numbers

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.

Previous

Python Output / Print

Next

Python Comments