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

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ธ.ค. 2024

ความคิดเห็น • 105

  • @sajjadhossan7972
    @sajjadhossan7972 3 ปีที่แล้ว +32

    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.

  • @sanv9853
    @sanv9853 ปีที่แล้ว +1

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

  • @maksymilianbiruk6877
    @maksymilianbiruk6877 2 ปีที่แล้ว +15

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

  • @ahmedouerfelli4709
    @ahmedouerfelli4709 2 ปีที่แล้ว +1

    This channel is underrated.

  • @DrIT-qv1ek
    @DrIT-qv1ek 5 หลายเดือนก่อน

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

  • @iliya-malecki
    @iliya-malecki 2 ปีที่แล้ว +1

    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

  • @kraken_norse
    @kraken_norse 10 หลายเดือนก่อน

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

  • @neoruss3553
    @neoruss3553 2 ปีที่แล้ว +5

    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.

  • @sidlas420
    @sidlas420 3 ปีที่แล้ว +33

    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.

    • @sreekanthpr
      @sreekanthpr  3 ปีที่แล้ว +57

      Thank you. I used text to speech conversion because of two main reasons: first is that I don't have a good enough setup for recording audio and this is much easier, second I'm not a native english speaker, so some people may have difficulty with the accent.

    • @sidlas420
      @sidlas420 3 ปีที่แล้ว +13

      @@sreekanthpr - You are a very thoughtful person. Thank you for the extra effort you have put in

    • @rainforest3233
      @rainforest3233 2 ปีที่แล้ว +1

      @@sreekanthpr I like your content! Really helpful!! Maybe you can consider hiring someone or using a more natural voice.

    • @xiam19
      @xiam19 ปีที่แล้ว

      Its perfect you just need to adjust the speed to 1,2x😅

  • @abhisekrout976
    @abhisekrout976 2 ปีที่แล้ว +1

    Very well explained. Your videos deserve more views.

  • @jannickharambe8550
    @jannickharambe8550 ปีที่แล้ว

    holy shit this is really really good
    ive googled for quite a while now and couldnt find any good explanations
    thanks so much

  • @arpankarmakar16
    @arpankarmakar16 2 ปีที่แล้ว +1

    You really understand python deeply! Great

  • @АнтонВащенко-ь9р
    @АнтонВащенко-ь9р 3 ปีที่แล้ว +4

    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)

  • @sudarshanvkudli9250
    @sudarshanvkudli9250 9 หลายเดือนก่อน

    This 15 minutes taught me more than what I learnt in a semester

  • @adrianosymphony
    @adrianosymphony 10 หลายเดือนก่อน

    in the time 07:01 (about 'some string' and 'some_string') don't work the same way if you run the code in a file and typing line by line in the interpreter. I tested here in some versions of python and the result was the same. Chat GPT told me why this heppended: "...when you run the code line by line in the Python interpreter, each line is executed independently, and the variables may not be stored in the same memory location. The Python interpreter, especially in interactive mode, may reuse memory for string literals that are equivalent. This is an optimization mechanism known as string interning."

  • @DjWhitefoxMadrid
    @DjWhitefoxMadrid 3 ปีที่แล้ว +1

    Must watch tutorial.
    Please keep it up with more like this.
    Thank you!

  • @rkvcherry5535
    @rkvcherry5535 หลายเดือนก่อน

    Super useful information every python programmer need to see this you are great man and you rocked it🎉🎉

  • @priyankagupta119
    @priyankagupta119 2 ปีที่แล้ว +4

    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 !!

  • @AnantaAkash.Podder
    @AnantaAkash.Podder 6 หลายเดือนก่อน

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

  • @didimomani1565
    @didimomani1565 ปีที่แล้ว

    u r great , I really didnt understand from anyone on youtube just you

  • @winterwilderness5073
    @winterwilderness5073 ปีที่แล้ว +2

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

  • @13MrMusic
    @13MrMusic ปีที่แล้ว +1

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

  • @AnantaAkash.Podder
    @AnantaAkash.Podder 6 หลายเดือนก่อน

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

  • @cb9493
    @cb9493 8 หลายเดือนก่อน

    Best explanation ever, thanks a million!!!!

  • @kakarot1223
    @kakarot1223 3 ปีที่แล้ว +2

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

  • @me-jn1zl
    @me-jn1zl ปีที่แล้ว +7

    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

  • @adityachoudhari1158
    @adityachoudhari1158 2 ปีที่แล้ว +1

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

  • @catchalok3
    @catchalok3 3 ปีที่แล้ว +2

    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.

    • @mohammadarshad8301
      @mohammadarshad8301 3 ปีที่แล้ว +1

      I think he has purposely increased the speed because of 2 reasons:
      1) He is aware of the fact that when the TH-cam video is watched slowing down, it gets recommended to much wider audience and watch time increases.
      2) He is confident about the content and so think that no one will think to let go these videos just because it's little' bit faster.

  • @JosueZelayah
    @JosueZelayah ปีที่แล้ว

    Dude you nailed it! Excellent work!

  • @clipdat345
    @clipdat345 2 ปีที่แล้ว +1

    impressive explanation, thank you!

  • @gena8414
    @gena8414 11 หลายเดือนก่อน

    very interesting. covers the memory model of python variables really well. Now I can predict the behaviour of code by drawing out a PyObject pointer diagram.

  • @maximilianoo86
    @maximilianoo86 3 ปีที่แล้ว +1

    Incredible material, very clear! Thank you so much for this!

  • @manishjain6294
    @manishjain6294 ปีที่แล้ว +2

    Hey Sreekanth. The video is too good. Which book do you read? Request you to give the source of this please.

  • @artemtitov8657
    @artemtitov8657 8 หลายเดือนก่อน +2

    BRO U ARE CRAZY!!! ITS FIRE!!! Where do you get such detailed information from? only the source code?

  • @rvoros
    @rvoros ปีที่แล้ว

    absolutely spot on explanation with excellent examples

  • @jpsan1735
    @jpsan1735 2 ปีที่แล้ว +1

    Thank for your video. It help me a lot to understand the core of python :33

  • @arlaxia
    @arlaxia 2 ปีที่แล้ว +1

    Really great animations and explanations. It was really informative and visual.

  • @sureshonteru4609
    @sureshonteru4609 ปีที่แล้ว

    This video helped me a lot , Thank you so much.
    Am requesting you create a more videos in python

  • @akmzahidulislam2764
    @akmzahidulislam2764 2 ปีที่แล้ว

    Excellent explanation. Thanks a lot. Correction: At 9:08, the name of the function should be the same, ie add_ten_to_list. Mistakenly mentioned as add_one_to_list.

  • @RahulSharma-lw2ss
    @RahulSharma-lw2ss ปีที่แล้ว

    Very exceptionally explained. Thankyou

  • @jakub1908
    @jakub1908 3 ปีที่แล้ว +1

    Keep going, great job!

  • @johnlemon9660
    @johnlemon9660 2 ปีที่แล้ว +1

    thanks bro! these topics rarely get touched as well as rarely taught visually well. what did you use to make these animations?

    • @sreekanthpr
      @sreekanthpr  2 ปีที่แล้ว +1

      I use github.com/ManimCommunity/manim to generate the video.

  • @sohailshah1574
    @sohailshah1574 ปีที่แล้ว

    Please more videos related to python.. what a visualization Thank you so much sir

  • @halciik
    @halciik ปีที่แล้ว

    This is what i wanted to know! Thanks!

  • @MagnusAnand
    @MagnusAnand 10 หลายเดือนก่อน

    This is a fantastic video and explanation

  • @MAMUN-zo9tv
    @MAMUN-zo9tv ปีที่แล้ว +1

    Just wow 😍😍😍😍

  • @polarbear986
    @polarbear986 ปีที่แล้ว

    Very good explanation !!

  • @fratquintero7402
    @fratquintero7402 3 ปีที่แล้ว +2

    Please, make more videos! You are awesome!

    • @sreekanthpr
      @sreekanthpr  3 ปีที่แล้ว +1

      Thanks. I'm working on the next one. Will try to upload it this week itself.

  • @witoldzolnowski7067
    @witoldzolnowski7067 ปีที่แล้ว

    great content, keep up the good work

  • @TechTutorialswithPiyush
    @TechTutorialswithPiyush 3 ปีที่แล้ว +1

    That was really amazing, would you be able to share the tools you have used for recording, is that a powerpoint or any other tool? Which application you have used for speech? Really impressed with the way you have delivered! Nailed it

    • @sreekanthpr
      @sreekanthpr  3 ปีที่แล้ว +4

      github.com/3b1b/manim for generating the video. One note >> view >> immersive reader for the audio. Davinci resolve for final mixing of video, audio and subtitles

    • @TechTutorialswithPiyush
      @TechTutorialswithPiyush 3 ปีที่แล้ว

      @@sreekanthpr That's awesome! Thank you very much for sharing. I wish you a great success ahead for your channel

  • @minhphamvan8993
    @minhphamvan8993 3 หลายเดือนก่อน

    much help video, thanks guys

  • @t.m7617
    @t.m7617 2 ปีที่แล้ว

    04:20 will the PyObject(s) reference count remain 1 no matter how many variables I assign to the PyVarObject?

  • @AnupSPai
    @AnupSPai 3 ปีที่แล้ว +1

    this helped me a lot, thank you so much!..

  • @khardu
    @khardu 3 ปีที่แล้ว +1

    Thank you for sharing your hard-work and knowledge for free. Could you please make it a little slower for your future videos. It's hard to keep up with the pace for python beginners and non-natives like me.

  • @nunorodrigues5628
    @nunorodrigues5628 2 ปีที่แล้ว

    awesome video mate

  • @ahmedsamir-qw1zp
    @ahmedsamir-qw1zp 2 ปีที่แล้ว

    too much helpful, and excellent demonstration ... could you send a reference on this topic to go deeper, please

  • @sozo4755
    @sozo4755 2 ปีที่แล้ว

    it's very helpful content, thanks

  • @mishalpatel514
    @mishalpatel514 2 ปีที่แล้ว +1

    Nice!😊
    Could you please tell me from where did you learn this?

    • @sreekanthpr
      @sreekanthpr  2 ปีที่แล้ว +2

      Comments from Python interpreter's source code github.com/python/cpython/blob/f572cbf1faab33d9afbbe3e95738ed6fbe6e48e6/Include/object.h#L9 and some specifics I started to notice when I learn another language and come back to Python.

    • @mishalpatel514
      @mishalpatel514 2 ปีที่แล้ว +1

      @@sreekanthpr That's so cool man! Please keep making more videos.😊

  • @sohailshah1574
    @sohailshah1574 ปีที่แล้ว

    Please more videos related to python.. what a visualization Thank you so much sir ...
    And one more thing, can i use your visualization for Instagram post?

  • @ВисалИнг
    @ВисалИнг ปีที่แล้ว

    Is the term object and value in python equivalent? Or object consider a box and a value is what the box contained?

  • @richardharris202
    @richardharris202 9 หลายเดือนก่อน

    such a underrated video!
    what is your linkedin bruh!

  • @sungchulyonseiackr
    @sungchulyonseiackr 2 ปีที่แล้ว

    Simply Great!

  • @vvuonghn
    @vvuonghn ปีที่แล้ว

    This video is awesome

  • @ahmedghallab5342
    @ahmedghallab5342 ปีที่แล้ว

    شكرا جزيلا 💙💙💙thanks

  • @Yassine-it6rp
    @Yassine-it6rp 11 หลายเดือนก่อน

    so good man

  • @umi_nari
    @umi_nari 10 หลายเดือนก่อน

    great video thks 🙏

  • @murodalinarzullaev5955
    @murodalinarzullaev5955 2 หลายเดือนก่อน

    thanks for class, can you share used Presentation?

  • @zeinabezz1426
    @zeinabezz1426 2 ปีที่แล้ว

    First, I'd like to thank you about your very powerful videos
    You say that list are stored in arrays... But what about tuples, sets, and dictionary??

  • @orgoon7697
    @orgoon7697 ปีที่แล้ว

    Outstanding, thx

  • @tanmaychavan743
    @tanmaychavan743 ปีที่แล้ว

    Why did you stop uploading videos 😢, they are so damn Good than any other channels.

  • @Pedritox0953
    @Pedritox0953 ปีที่แล้ว

    Great video!

  • @lilyzheng2322
    @lilyzheng2322 ปีที่แล้ว

    this make so much sense

  • @DhavalAhir10
    @DhavalAhir10 3 หลายเดือนก่อน

    How to contact you bro?
    I have 2 question in Python.
    If you can able to answer.

  • @AnantaAkash.Podder
    @AnantaAkash.Podder 6 หลายเดือนก่อน

    Thank You Sir...

  • @hrtrfli2702
    @hrtrfli2702 3 ปีที่แล้ว

    İt is usefull ,so much , thank you very much.

  • @ttoommxxmmoott
    @ttoommxxmmoott ปีที่แล้ว

    I wonder how had the brilliant idea to create the += operator, it's just extremely confusing unless you know exactly what you are doing

  • @keizbot
    @keizbot 5 วันที่ผ่านมา

    So every variable is heap allocated... sounds like a cache locality nightmare

  • @mehdichellak4373
    @mehdichellak4373 2 ปีที่แล้ว +1

    I type the same code as you:
    x = 42
    y = 42
    print(x == y) # true
    print(y is x) # true
    print(id(x), id(y))
    x = -257000
    y = -257000
    print(x == y) # true
    print(y is x) # true
    print(id(x), id(y))

  • @JohnWickXD
    @JohnWickXD ปีที่แล้ว

    Thanku so much!

  • @МаксимШаламов-ш8ш
    @МаксимШаламов-ш8ш 3 ปีที่แล้ว

    great job!

  • @biswajitdas4214
    @biswajitdas4214 2 ปีที่แล้ว

    Awesome beautiful

  • @boutiflet
    @boutiflet 3 ปีที่แล้ว

    Awesome !

  • @olivierTUBO
    @olivierTUBO 3 ปีที่แล้ว

    Thanx for doing this

  • @sreekanthpr
    @sreekanthpr  ปีที่แล้ว +2

    *The same video is re-uploaded with better audio and minor corrections:* th-cam.com/video/Bz3ir-vKqkk/w-d-xo.html

  • @M.I.S
    @M.I.S ปีที่แล้ว

    thank YOU!

  • @armanmalkhasyan4765
    @armanmalkhasyan4765 3 ปีที่แล้ว

    Thank you very much

  • @stephanosc7728
    @stephanosc7728 2 ปีที่แล้ว

    Clear

  • @itsmaxim01
    @itsmaxim01 ปีที่แล้ว

    me using try {} catch {} to push items to the immutable array:

  • @innercircletradertevision
    @innercircletradertevision 8 หลายเดือนก่อน

    I am tired

  • @AA-cr6gd
    @AA-cr6gd 2 ปีที่แล้ว

    6

  • @actuallyStryder
    @actuallyStryder 3 หลายเดือนก่อน

    AI uncanny valley voices are bad and you should feel bad.

  • @user-jm6gp2qc8x
    @user-jm6gp2qc8x 3 หลายเดือนก่อน

    what the actual fuck

  • @sohailshah1574
    @sohailshah1574 ปีที่แล้ว

    Please more videos related to python.. what a visualization Thank you so much sir