Getting Started · Lesson 12 of 76
Interactive Python
Besides running whole files, Python has an interactive mode (the "REPL") where you type one line and see the result instantly — great for trying small things. You start it by typing python in a terminal with no file name.
The Run boxes in this course behave like that: type, run, see the answer.
Python
Use this whenever you're unsure how something behaves — test it in a small box before putting it in a bigger program.
Your turn: print the result of 100 / 7 rounded to 2 decimals (hint: round(100 / 7, 2)).
You’re reading for free. Sign in to keep your progress and earn a certificate when you finish.Sign in to keep my progress →