Understanding Python loops

Поділитися
Вставка
  • Опубліковано 15 лис 2024

КОМЕНТАРІ • 12

  • @Jared888
    @Jared888 2 роки тому +3

    This, my friend, was very helpful! It helped to break it down and I feel like I am finally getting it!
    In an instance such as this "for X in Y:" it helped me to see that Y is the object that it is trying to iterate and X can just be any variable you make up and is not dependent on anything else. That solidified when you assigned the variable in X a value then put it in the 'for' statement and it reassigned the value.
    Thanks so much for doing this Reuven! I know others have had this question, but thanks for making this video the day after I asked you this very question!

  • @cletusclark4988
    @cletusclark4988 Рік тому +1

    Wish you would make more videos like this about the difficult topics in Python, I will be so glad and happy thank you so much

    • @ReuvenLerner
      @ReuvenLerner  Рік тому

      I'm trying to make videos more frequently; let me know what topics would be helpful, and I'll do what I can!

  • @amiteshsharma215
    @amiteshsharma215 2 роки тому +1

    Coming from C++ what you said at 9:22 I so much concur. Even after more than 2 years in python it bugs me(pun intended). I sometimes do write a for loop like 10:23. But after your sane explanation it makes more sense to follow your methodology
    thanks Reuven

  • @elu1
    @elu1 2 роки тому +1

    Nice and clear explanation. Thanks Reuven!

  • @cletusclark4988
    @cletusclark4988 Рік тому +1

    I love you man you are the best it's very clear to me now

    • @ReuvenLerner
      @ReuvenLerner  Рік тому

      Wow, thanks so much! Very glad to know that it helped.

  • @rabihbadr54
    @rabihbadr54 Рік тому +1

    Great explanation

  • @CrapE_DM
    @CrapE_DM 2 роки тому +1

    Hope you figure out your sound issues.

    • @ReuvenLerner
      @ReuvenLerner  2 роки тому +1

      I did... after recording this video... I'll definitely double-check my microphone before recording in the future; it hadn't given me such trouble before, and I'm sorry it sounds so, um, bad.