r/learnpython • u/[deleted] • 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
2
u/Excellent-Practice Jan 05 '24
You can write Python in a text document, and it will work just as well as if you wrote it on paper. It might be properly formatted and valid code, but if you don't run it through an interpreter of some kind, it won't do anything. An interpreter is what takes your code and converts it into instructions that your computer can actually process so that it can return a result which can then be converted into a format that you can understand.