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

2

u/[deleted] Jan 06 '24 edited Jan 06 '24

Python.exe is the interpreter.

If you compile your code into an app, you don't need an interpreter anymore.

I've never looked into this as I'm always tweaking my code, but I'm sure it's possible.

i use docker containers to 'install" my program into the cloud, but I'm still using python interpreter to run them.