← all tracks/Python Basics

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 screen
  • input() — 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