Python Output Numbers
Print Numbers
You can also use the print()
function to display numbers:
However, unlike text, we don't put numbers inside double quotes:
You can also do math inside the print()
function:
Mix Text and Numbers
You can combine text and numbers in one output by separating them with a comma:
You will learn more about combining text and variables in the Python Variables and Python Strings chapters.