Python TutorialLesson 5Free preview
Python Output
This lesson is part of Python · All levels
Summary
This lesson explains how to display output in Python using the print() function. We can print multiple values at once, arrange the separation between arguments with a sep, and control the end of the line with an end. In addition, the f-string makes it easier to insert variable values into text so that the output is more neat and easy to make.
Key points
- The print() function is used to display text or values to the screen.
- The sep parameter determines the separation between arguments, the default is space.
- The end parameter specifies the character after the output, the default is newline.
- The f-string allows the insertion of an expression into the string with curly braces.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.