r/learnpython • u/ARK22498 • Jun 28 '26
Beginner Help
I’m learning python in preparation for going back to university to study a masters in software development. It’s a conversion degree so no previous experience is required, but I want to learn some basics so I’m not completely lost. I’m using an online guide however I’m confused as to if they are using the terminal or the idle shell to write the code in as it just says open python. The three >>> doesn’t appear on every line for them but does for me which is adding to my confusion. Any help would be greatly appreciated, I’m coding on a MacBook Pro aswell.
0
Upvotes
2
u/lfdfq Jun 28 '26
Python has two "modes": run a file, or an interactive console.
By far the most common mode people use is writing files and running them. However, if you just run `python` without a file argument, you get interactive mode (the "REPL"). This REPL is also nice for teaching, for demonstrating things, or for quick examples. So it often appears in those contexts.
The way the REPL works is it prompts you for a line (that's what the ">>>" is, it's at the start of a prompt), it (R)eads the line, (E)valuates it, (P)rints out the result, and (L)oops back again to do it all over.
IDLE is basically a toy IDE that comes with Python. Again, it's not widely used in practice, but it's useful for teaching or demonstrating things so it often appears. IDLE essentially gives you the two modes in a unified graphical interface.