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.

-16

u/outofband Jan 05 '24

VSCode is not an ide

6

u/okabe_rintarou-42 Jan 05 '24

It is essentially

-8

u/Krudflinger Jan 05 '24

It’s essentially a text editor

9

u/usrlibshare Jan 05 '24

And an lsp client, lsp server runner, gitclient, project structure manager, with bindings to linters, ci/cd tooling, compilers, has a builtin terminal, integrates with project management software...

...pretty sure that's an IDE my friend.

-7

u/Krudflinger Jan 05 '24

That’s a patchwork of features that are a developer environment. that they aren’t integrated together as a cohesive product is why it isn’t an ide, my friend. see differences between visual studio and vs code

1

u/usrlibshare Jan 05 '24

Pray tell, what is it then, in your opinion?

3

u/SisyphusAndMyBoulder Jan 05 '24

Isn't it just a text editor?

Though with all the plugins available, I think it's a moot point - most people just consider it an IDE after they configure it up

1

u/repocin Jan 05 '24

Even out of the box with no plugins, it's for far more IDE-like features than typical text editors do. Personally, I think I'd put it somewhere inbetween the two.

2

u/outofband Jan 05 '24

An advanced editor

1

u/Plank_With_A_Nail_In Jan 05 '24 edited Jan 05 '24

lol the default install is like 2 clicks away from being a very good Python IDE....but apparently those two clicks make all the difference to pedants like you. Life is already hard enough without people making up nonsense rules like these for themselves.

2

u/outofband Jan 06 '24

There is no need to get heated up. I’m just stating how things are. Beside VSCode itself does market it as an editor and not an IDE.

1

u/sexytokeburgerz Jan 05 '24

Many will argue that but the silent majority will just call it an IDE once it has extensions for every language imaginable