What is the Python Interpreter? (How does Python Work?)

What is the Python interpreter and how does Python work internally?
In this video, I talk about how the Python interpreter works and how it runs your Python source code. Essentially, the Python interpreter is comprised of two subsystems:
1- A compiler: this compiles your source code into an intermediate code called the 'byte code'
2- A Python virtual machine (PVM): this interprets and executes the byte code on your machine.
A good understanding of the concepts discussed in this video is crucial if you want to master the Python programming language.
Resources:
📝 Python Cheatsheet: www.afternerd.com/blog/get-py...
🖥️ Computer Science guide: www.afternerd.com/blog/learn-...
🐍 Python roadmap guide: www.afternerd.com/blog/learn-...
Courses:
📚 Python OOP: www.afternerd.com/udemy/pytho...
Where you can find me:
ℹ️ Website: www.afternerd.com/
📸 Instagram: / the_kreamix
🐦 Twitter: / afternerdtweets

Пікірлер: 158

  • @loklyu5691
    @loklyu5691Сағат бұрын

    This is the best python mechanism of action explanation I've seen on the internet

  • @sajalchuttani2519
    @sajalchuttani2519 Жыл бұрын

    just devoted 4 hours today learning how the python interpreter works and this video just summarized it into a 15 min video . Nice explanation , love the way you just go about explaining the stuff on a digital white board instead of some fancy animation stuff (which ofc increases information quality) SUBSCRIBED

  • @ryezizzle
    @ryezizzle Жыл бұрын

    dude, i spent all day trying to figure this stuff out, and you explained it so well. subscribed!!!!

  • @steveq1881
    @steveq18813 жыл бұрын

    I've been searching for this info everywhere! Thank you so much for going into the details of how it really works.

  • @Bojan456
    @Bojan456 Жыл бұрын

    Amazing video. I love the added details from your old job and how it helps you to understand the new one. Thanks for sharing.

  • @aryandugar9810
    @aryandugar98103 жыл бұрын

    this was awesome. i have not seen content about such python concepts explained so well!

  • @averystehr
    @averystehr3 жыл бұрын

    Thank you so much! Well said! I've been trying to find this exact information.

  • @SUPERHEAVYBOOSTER
    @SUPERHEAVYBOOSTER2 жыл бұрын

    This was awesome. Thank you so much. It's so rare to find channels that really dig in deep!

  • @quitchiboo
    @quitchiboo3 ай бұрын

    Late to the party, but pretty much instantly subscribed. Clear, to the point, minimalist yet highly effective visual aids.

  • @Kidarajenikola1
    @Kidarajenikola13 жыл бұрын

    Great stuff,so easy to follow and understand.It helps us,beginners,a lot!!

  • @ColonelHathi
    @ColonelHathi9 ай бұрын

    This the best video explaining how an interpreter works. Thank you for giving details and examples, not hand waving magic! 😊

  • @prateeksharma962
    @prateeksharma9622 жыл бұрын

    Great Video. Seen others, but this is the best explanation that I have come across. Thank you, you have strengthen my understanding.

  • @user-sl2ti8yg5m
    @user-sl2ti8yg5m3 ай бұрын

    Your way of explaining things is really clear and easy to understand! Thank you so much

  • @Aksinia1599
    @Aksinia1599 Жыл бұрын

    This is so enlightening! I have been looking for such explanation. Thank you very much for the video.

  • @brady1045
    @brady10453 жыл бұрын

    Well explained and super helpful, thank you!!

  • @monazine
    @monazineАй бұрын

    This is so clear and informative i like to know whats going on to understand later how things work even if i wont go deep to these codes. Thank you for this

  • @lucascerveracom
    @lucascerveracomАй бұрын

    Great explanation! Thanks for sharing your knowledge in such an easy to understand way

  • @milton7285
    @milton72853 жыл бұрын

    Thanks for a simple video. Keep it simple!

  • @danbromberg
    @danbromberg9 ай бұрын

    Excellent under-the-hood- description of what's going on!

  • @ahmed51988
    @ahmed51988 Жыл бұрын

    A very nice in-depth yet simple explanation

  • @gd2860
    @gd2860Ай бұрын

    Im the type of person who has to learn it from a very high level first then, the rest should fall into place. This fills a lot of gaps that ive had in getting started with python. Im new to this but again, I need to see the big picture first. Im an old network guy who mastered networking years ago. Been shying away from network automation but its what's here now and literally in my face at the workplace. Excellent explanation. Well done!

  • @aryamick
    @aryamick Жыл бұрын

    Thanks a lot, bro!! That was indeed both insightful and easy to understand.

  • @yusupovjasur
    @yusupovjasur2 жыл бұрын

    Great in-depth tutorial, thank you!

  • @YesuSira
    @YesuSira2 жыл бұрын

    Thank you, this was basic and explained in easy-to-digest bites.

  • @gopesh97
    @gopesh97 Жыл бұрын

    Amazing!! Thank you so much for posting this.

  • @MAYANKKUMAR-vm3gy
    @MAYANKKUMAR-vm3gy Жыл бұрын

    Awesome extremely clear explanation, quick fix of basic python confusion..

  • @davidkuda7074
    @davidkuda70743 жыл бұрын

    that was very informative, thank you so much for doing this!

  • @estebangomez1823
    @estebangomez18235 ай бұрын

    This nailed it!!! Happy to found this channel!

  • @utkarshujwal3286
    @utkarshujwal328610 ай бұрын

    Thank you so much. It clarified a lot of my doubts.

  • @UnleashedEntomber
    @UnleashedEntomber Жыл бұрын

    Well, it's the best explanation on the internet, what can I say. Great job!

  • @merrymouse2008
    @merrymouse20084 ай бұрын

    Wonderful video! You explain it so nicely and it is easy and interesting to follow. thank you so much for making it!

  • @jordinp2140
    @jordinp21402 жыл бұрын

    I needed this, Thanks! Really well done.

  • @mosheglobus1124
    @mosheglobus11242 жыл бұрын

    Thank you. High-quality content!

  • @hanan_almulla
    @hanan_almulla8 ай бұрын

    finally a great explanation!! thanks a lot :)

  • @MohyDev
    @MohyDev Жыл бұрын

    Hey Karim, that was really great thanks!

  • @hemalakshmi1187
    @hemalakshmi118711 ай бұрын

    your teaching was amazing and thankyou so much

  • @vishwas4435
    @vishwas4435 Жыл бұрын

    Well explained. Had always wondered about why python is described in different way. And baout PVM. It is pleasing to understand the concepts.

  • @ItzRaiyan
    @ItzRaiyan2 жыл бұрын

    Brilliant Video! This was a very informative and detailed video

  • @leobang2308
    @leobang23082 жыл бұрын

    This was really helpful understanding how python interpreters works under the hood. thanks a lot you are amazing 👍👍

  • @navnitkumar138
    @navnitkumar1383 ай бұрын

    Nice Explanation. Very impressive tutorial for me. Now I learnt How Interpreter works. Thanks a lot..!

  • @uchihalayan3435
    @uchihalayan34352 жыл бұрын

    this is the best explanation for the interpreter thank you so much

  • @jeeveshvanga2598
    @jeeveshvanga25982 жыл бұрын

    cool and clear explanation 🎉

  • @rajarsiroy6362
    @rajarsiroy63628 ай бұрын

    Great explanation, thanks

  • @soulelemanator97
    @soulelemanator97 Жыл бұрын

    This was so helpful and well said

  • @HemanthKumardigital
    @HemanthKumardigital Жыл бұрын

    Thanks bro , for clear explination its really helps

  • @promechafox8083
    @promechafox80832 жыл бұрын

    What an Amazing video. Very Easy to understand : )

  • @guilhemescudero9114
    @guilhemescudero91143 жыл бұрын

    THANKS! Amazing work man!

  • @renanaoki714
    @renanaoki7148 ай бұрын

    Now all make sense, thanks 👏👏👏👏👏👏👏

  • @azertyman776
    @azertyman7763 жыл бұрын

    Nice video ! It helped me a lot, keep going !

  • @subhashgn1775
    @subhashgn17752 жыл бұрын

    Very well explained....👌👌 Thank you..🤝

  • @LC-sx2ht
    @LC-sx2ht Жыл бұрын

    Great explanation, thank you!

  • @zakriazaheen7616
    @zakriazaheen76163 жыл бұрын

    I recommend sir lectures for very beginners so much friendly and easy .

  • @hisstoryinthemaking613
    @hisstoryinthemaking6132 жыл бұрын

    excellent work explaining this.. very practical 🙂👌🏽

  • @mujelsh9347
    @mujelsh93473 жыл бұрын

    Thank you brother. Great video Ya Mo3alem

  • @sowmyaganiga4155
    @sowmyaganiga41552 ай бұрын

    Thanks for the information this is what needed to start with anything in IT , Please make more and more videos on basics

  • @Mike-og4wc
    @Mike-og4wc2 жыл бұрын

    Great video, thanks a lot!

  • @celestial2091
    @celestial20912 жыл бұрын

    Amazing video!!

  • @terrencemasuku8909
    @terrencemasuku89092 жыл бұрын

    man that was so cool. keep it up

  • @Fb-uv4jj
    @Fb-uv4jj3 жыл бұрын

    came here from your website. i think that you explain simple because you know subjects well. useful for me. high quality content.

  • @Afternerd

    @Afternerd

    3 жыл бұрын

    Thanks!

  • @tehDIMND
    @tehDIMND2 жыл бұрын

    thx man, awesome explanation :)

  • @personsname0
    @personsname03 жыл бұрын

    Great explanation!

  • @umarbshehu7647
    @umarbshehu7647 Жыл бұрын

    Wow! You just saved a life here. Thanks a bunch. Is there a continuation of this video?? You stopped halfway.

  • @androsp9105
    @androsp91059 ай бұрын

    Thank you for explaining this.

  • @Afternerd

    @Afternerd

    9 ай бұрын

    I appreciate it! Thank you!

  • @yonahcitron226
    @yonahcitron2262 жыл бұрын

    Really Great info

  • @reccon_game
    @reccon_game2 жыл бұрын

    Thank s this is very easy to understand

  • @awusacollins
    @awusacollins9 ай бұрын

    Great explanation)

  • @ben_jammin242
    @ben_jammin24210 ай бұрын

    I was hoping this video was going to explain the actual parsing of the python code into the execution model, defines, declares/variables, function calls. Lovely video though. Thanks for the explanation. It was extremely thorough and concise - you definitely seem to take the time to really understand things. Would love to see more content by you :). Great personality too. ❤ Edit: syntax tree I think is the terminology I was missing above

  • @matheuscerozi6649
    @matheuscerozi6649 Жыл бұрын

    thank you, it helped me a lot

  • @madhanrajmoorthy8843
    @madhanrajmoorthy88433 жыл бұрын

    Hi Bro, It's amazing way you have explained. I was expecting in my mind to learn like this. Since, the understanding of hard part will be reduced when we learn using basics with super diagrams. Hats off bro. Thank you so much. :)

  • @Afternerd

    @Afternerd

    3 жыл бұрын

    Glad you found it useful! Thank you.

  • @mustgame2233
    @mustgame22332 жыл бұрын

    wow. Great Job!!!

  • @peek-aaa-boo758
    @peek-aaa-boo7583 жыл бұрын

    Helpful stuff 👏

  • @fentazimohamedreadh5274
    @fentazimohamedreadh5274 Жыл бұрын

    Thank you for making this video. I managed to understand it clearly (though I have a decentbackground in computer science). But I'm sure even a beginner would understand modt of it. Make more of those thank you!

  • @web_hub
    @web_hub2 жыл бұрын

    Thank you, sir ☺️💛

  • @gianireyes405
    @gianireyes4053 жыл бұрын

    Man, this is pure gold. I've been many time asking myself and looking for this information, and finally I got a good explanation. Thanks, really. Aaaaaand I have a question if u don't mind: When you talk about the "memory" , you mean the memory unit in the processor, or something else ?

  • @Afternerd

    @Afternerd

    3 жыл бұрын

    I am happy to know that someone “cares” about this level of detail :). Thanks for your kind words. And yes, you are right, I am talking about the RAM that comes with your desktop/laptop. It is not really “in” the processor but it is connected to the processor. A processor has a component called a memory management unit (MMU) but this is not what I am talking about. I am talking about the actual RAM.

  • @RaviRaj-je3rh
    @RaviRaj-je3rh2 жыл бұрын

    Karim bro😎...Truely useful content & logically presented .... 🐅

  • @Afternerd

    @Afternerd

    2 жыл бұрын

    Ravi! Thanks my man!

  • @josemanueltrujillorodrigue1838
    @josemanueltrujillorodrigue1838 Жыл бұрын

    What a great job!!!!

  • @nabanitabarik4419
    @nabanitabarik44192 жыл бұрын

    Thanks man. 👍 It helps lot 😊

  • @tatyanatarasova6480
    @tatyanatarasova6480 Жыл бұрын

    I'm a nerd! )) couldn't stop asking myself how it works. Thank you!

  • @johnkunz7798
    @johnkunz77989 ай бұрын

    This is such an awesome explanation. I've watched and read stuff on the GIL and how it regulates threads. Please explain this and how this somehow works optimally for IO operations.

  • @byroniniesta5370
    @byroniniesta5370Ай бұрын

    Thank you sir.👍

  • @jkommu
    @jkommu2 жыл бұрын

    Lovely. Thank you

  • @user-zr8tq3zf3b
    @user-zr8tq3zf3b Жыл бұрын

    Thank you so much!!

  • @ericay4054
    @ericay40543 жыл бұрын

    It is incredibly useful! thanks :)

  • @Afternerd

    @Afternerd

    3 жыл бұрын

    Thank you!

  • @mayeganfriends6678
    @mayeganfriends66783 ай бұрын

    I'm subscribing.....Gold information here

  • @VinodMoorkoth
    @VinodMoorkoth2 жыл бұрын

    Great Video bro

  • @halim_Ha
    @halim_Ha3 жыл бұрын

    damn this is amazing man

  • @RoboMarchello
    @RoboMarchello2 жыл бұрын

    Thank you!

  • @subhankarmodumudi9033
    @subhankarmodumudi90333 жыл бұрын

    Great & Thankyou.

  • @herohoang4717
    @herohoang47174 ай бұрын

    Amazing 🎉🎉🎉

  • @zuzanwin6614
    @zuzanwin66146 ай бұрын

    Thank you so much

  • @rexxer8055
    @rexxer8055 Жыл бұрын

    Awesome 😃

  • @VinodMoorkoth
    @VinodMoorkoth2 жыл бұрын

    Subscribed !

  • @user-ym2nq1gu2u
    @user-ym2nq1gu2u7 ай бұрын

    Thank you :)

  • @thedoremaq
    @thedoremaq Жыл бұрын

    Thanks!

  • @salonisingh9171
    @salonisingh91713 жыл бұрын

    Amazing ❤️

  • @Afternerd

    @Afternerd

    3 жыл бұрын

    Thanks Saloni

  • @mannp31
    @mannp312 ай бұрын

    Thanks bro

  • @WaldoTheWombat
    @WaldoTheWombatАй бұрын

    Thank you Karim, excellent video! Why do interpreters convert source code to machine code one row at a time unlike compliers that convert the entire file all at once and what is the consequence of this difference?

  • @blackopsparis4709
    @blackopsparis47092 жыл бұрын

    Thank you so much for this, I've learned a lot about compiling and disassembly phyton. you have a thumbs up!

  • @dani-os2sx
    @dani-os2sx2 ай бұрын

    Now I know everything 😊

  • @barjammar
    @barjammar Жыл бұрын

    Thanks. I agree with you that understanding stuff is easier than just learning and remembering. I'm also looking for a lesson on what all the windows are in PyCharm. How do I get rid of them or use them. Also, point a particular window at the file in use rather than the file I was using yesterday!

  • @21stcenturygirl81

    @21stcenturygirl81

    Жыл бұрын

    Likewise..