Python Tutorials · Python Output

Python Output

Learn all about Python Output in this comprehensive tutorial.

5 min read beginner
  • You have already learned that you can use the print() function to display text or output values:
  • Text in Python must be inside quotes.
  • By default, the print() function ends with a new line.

Double Quotes

Text in Python must be inside quotes. You can use either " double quotes or ' single quotes:

python

If you forget to put the text inside quotes, Python will give an error:

python

Module quiz

2 questions
1

Which of the following is true about Python Output?

2

What is the most common pitfall when working with Python Output?

Answer all questions to submit.