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

1

u/[deleted] Jan 05 '24

Open a terminal and enter python, that’s the interpreter, on you could call it CPython. It’s like a machine that could interpreter your lines of codes to byte code which will be executed by the python virtual machine lien by line.

1

u/[deleted] Jan 05 '24

Of course not all implementations of python are based on C, but cpython is the most popular one and