Input & Output
Input & Output: Talking to the Computer 🖥️
Every Python program needs a way to show information, and often a way to ask the person using it for some. This unit is all about the two commands that make that possible:
print()— show something on the screeninput()— read something the user types
We'll start with every common way to use print(), then move on to input(). Each lesson on the left teaches you one small idea with a real example — then it's your turn to try it yourself in the editor on the right.
Let's go!
# problems
1Your First print()
Easy
2Printing Numbers
Easy
3Printing Multiple Things
Easy
4Changing the Separator
Easy
5Changing the Ending
Easy
6Line Breaks Inside a String
Easy
7Joining Text with +
Easy
8Reading What the User Types
Easy
9Reading More Than One Line
Easy
10Reading a Number
Easy
11Building Messages with f-strings
Easy