How variables work in Python | Explained with Animations [See description/first comment]

preview_player
Показать описание

This video tries to explain how variables or name bindings work in Python and their internal representations like PyObject and PyVarObjects, using animations.

Intermediate level concepts like reference counting, garbage collection, how lists work internally, why python is a dynamically typed language, interning, None objects, equality operators like '==' and 'is', how 'del' works, how variables are passed into functions(pass by reference), issues with default mutable parameters, operator overloading and behaviour of augmented arithmetic assignment operators, the behaviour of mutable element in the tuple are also explained.

It also shows how mutable and immutable data types behave differently in some scenarios. This knowledge should be useful for people coming from other languages like C, Rust, or Golang and may enable them to write better Python code.

References
------------------

Chapters
---------------
0:00 How variables works in C
0:49 How variables works in Python
3:12 How lists are represented internally
5:37 Interning
7:12 Equality operators
8:13 Pass by reference to functions
9:18 Mutable default parameters
11:24 Augmented arithmetic assignment operators
13:12 Mutable elements in Tuple
Рекомендации по теме
Комментарии
Автор

You really have an unique way to teach with deep understanding about programming. Please continue with your work. We wants to learn more about python from you.

sajjadhossan
Автор

I have never seen such a better explanation than this before! Thank you so much for this video.

maksymilianbiruk
Автор

I have seen 4 of your videos in a row... THEY ARE EXCELENT!!! you are a great teacher... Please continue uploading such quality videos 🙏 HAVENT SEEN ANYTHING SO WELL EXPLAINED AS YOUR VIDEOS

me-jnzl
Автор

Watched almost all videos on advance topics of python. Even though i never used python i can say these advanced topics are same or very similar for 90% of other programming languages, so learning it once means you can use it in any other language.

neoruss
Автор

Very good visuals. However a small suggestion that it would be even more impactful if you explained it rather than a robotic voice reading through the statements.

sidlas
Автор

Beyond exceptional. This is the only channel I have found that is non-trivial. Great job! The animations are great.

DrIT-qvek
Автор

Outstanding video, its like an ascii table that some nerds print and hang in their bedrooms - the quintessential information. I will save this video on a flash drive and will put it on my bedside table

iliya-malecki
Автор

It's a usefull lesson) I am the beginner in Python and as for me, this lesson was very interesting) Thank you, my friend for your work)

rhzzjhl
Автор

Your videos are very helpful and give me deep understanding of the concepts in Python. Request you to please make a full playlist of Python-Basic, Medium, Advance concepts. Thank you so much !!

priyankagupta
Автор

thanks for putting together this explanation, after going through countless beginner tutorials i hit gold

sanv
Автор

Very thorough explanation and vivid visualization. Thank you so much for your efforts in producing such extraordinary contents!

winterwilderness
Автор

This is by far the best explanations which I have come across. Sometimes, speech is fast. For this, I am using playback speed of "0.75" and it works very well for me.

catchalok
Автор

This by far the Best... In terms of explaining how Python Variables are Stored

AnantaAkash.Podder
Автор

Thanks. I have been coding in Python for years and only learn this piece of fundamental knowledge from your video.

kraken
Автор

You really understand python deeply! Great

arpankarmakar
Автор

Very well explained. Your videos deserve more views.

abhisekrout
Автор

Thank-you!
It's what i was looking for.

adityachoudhari
Автор

You really do have an Unique way of Explaining things to others

AnantaAkash.Podder
Автор

Extremely enlightening! Excelent job, extremely well done! It was very helpful

MrMusic
Автор

great video mate, never knew about all this despite using python for some while

kakarot