r/learnpython • • Jan 05 '24

Why are interpreters required for programming ?

i'm trying to learn python ....i'm hearing a lot of stuff about interpreters....just wanna know what are they for..why are they required...can i learn python without interpreter...without vs code or py charm

Cuz i wrote some codes in python and it worked without connecting python to interpreter ....why is an interpreter necessary

Plz enlighten me

14 Upvotes

71 comments sorted by

View all comments

53

u/K900_ SRE person // please don't DM me your questions Jan 05 '24

VSCode and PyCharm are IDEs, not interpreters.

10

u/notacanuckskibum Jan 05 '24

VSCode and PyCharm are Integrated Development Environments (IDEs) and one of the things they integrate is an interpreter.

Computers can’t understand and run Python (or JavaScript, or C…) You need an interpreter or a compiler to convert the English like syntax into something the computer can understand.

1

u/1maru May 02 '24

VSCode does not integrate the Python interpreter in any way that's meaningful to OP's question; rather, this part might sounds confusing instead. When you run your code through VSCode, VSCode isn't really doing anything other than starting the Python binary program along with passing it the path to the file it thinks is the main entry point.

1

u/notacanuckskibum May 02 '24

Yes, that’s how they are integrated.

1

u/1maru May 02 '24

Yeah, it's just confusing the way you're putting it because VS Code itself has nothing to do with the question 'what is an interpreter and why do we need them'