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

9

u/BokoMoko Jan 05 '24

if your Python code is running, there is a interpreter being used.

VScode and Pycharm are not Python interpreters. They're code editors with integrated features, among them the integration with an interpreter that actually runs the code.

Have in mind that Python is an interpreted language, like JavaScript, BASIC and others. Each of them need its own interpreter.

What is happening is that you are indeed using an interpreter, you just don't know how.

Give us more details on how/where you run your Python code and we can make a good guess on what you're using to interpret your code.