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

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

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

  • @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.

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

    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.

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

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

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

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

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

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

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

    You really understand python deeply! Great

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

    This channel is underrated.

  • @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😅

  • @iliya-malecki
    @iliya-malecki ปีที่แล้ว +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

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

    Very well explained. Your videos deserve more views.

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

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

  • @neoruss3553
    @neoruss3553 ปีที่แล้ว +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.

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

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

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

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

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

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

  • @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

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

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

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

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

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

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

  • @АнтонВащенко-ь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)

  • @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

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

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

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

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

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

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

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

    impressive explanation, thank you!

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

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

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

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

    Very exceptionally explained. Thankyou

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

    Best explanation ever, thanks a million!!!!

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

    absolutely spot on explanation with excellent examples

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

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

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

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

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

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

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

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

    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.

  • @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

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

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

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

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

  • @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.

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

    Keep going, great job!

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

    This is what i wanted to know! Thanks!

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

    Just wow 😍😍😍😍

  • @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.

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

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

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

    This is a fantastic video and explanation

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

    great content, keep up the good work

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

    Very good explanation !!

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

    it's very helpful content, thanks

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

    much help video, thanks guys

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

    such a underrated video!
    what is your linkedin bruh!

  • @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.

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

    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?

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

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

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

    this make so much sense

  • @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 ปีที่แล้ว

    awesome video mate

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

    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."

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

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

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

    Simply Great!

  • @murodalinarzullaev5955
    @murodalinarzullaev5955 25 วันที่ผ่านมา

    thanks for class, can you share used Presentation?

  • @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.😊

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

    Thanku so much!

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

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

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

    Thank You Sir...

  • @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?

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

    Great video!

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

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

  • @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

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

    Outstanding, thx

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

    thank YOU!

  • @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))

  • @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??

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

    Thanx for doing this

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

    Thank you very much

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

    Awesome beautiful

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

    This video is awesome

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

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

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

    great video thks 🙏

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

    so good man

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

    Awesome !

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

    great job!

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

    Clear

  • @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

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

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

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

    6

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

    I am tired

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

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

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

    what the actual fuck

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

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