🛠️Read-Eval-Print Loop (REPL)
Also known as REPL, Interactive Shell, Python Shell, Node REPL
A prompt where you type one line of code and see the answer at once.
Think of it like
It is like a calculator. You type a sum, press enter, and the answer shows up at once.
Example
Why it matters
You can test a small idea in seconds, without making a file. It is also how many people first learn a language.
Definition
Example code
console
$ python3
>>> 2 + 3
5
>>> "hi".upper()
'HI'Common mistake
Key takeaways
- 1Read, run, print. Then it waits for the next line.
- 2One line at a time. Good for trying, not for building.
- 3Nothing is saved. Copy what works into a real file.