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

30

u/JamzTyson Jan 05 '24

Greatly simplified:

Computers don't understand English. The Python interpreter converts Python code (which can be considered as "specially formatted English") into a simpler set of instructions called "Bytecode". These simplified instructions can then be run in a special piece of software called the Python virtual machine. The virtual machine converts the bytecode into low level binary instructions which are executed by the computer hardware.