for Loop with range() Function in Python

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 36

  • @kaneki3194
    @kaneki3194 Год назад +36

    This is the best explanation I had so far out of all python tutorial out there. Why did it not receive much views?!

  • @dairoleslieann9921
    @dairoleslieann9921 Год назад +16

    Very clear and understandable

  • @TFB0608
    @TFB0608 9 месяцев назад +4

    This was so concise and to the point, thank you!

  • @krishnagaming3408
    @krishnagaming3408 10 месяцев назад +3

    Your teaching skills is very amazing

  • @Oof-bp4wb
    @Oof-bp4wb 8 месяцев назад +1

    in 7:50 we can also use while for that isn’t?
    n = int(input())
    start = 0
    while start

    • @farragoprismproductions3337
      @farragoprismproductions3337 6 месяцев назад +1

      Makes sense to me, and I'm a beginner.

    • @farragoprismproductions3337
      @farragoprismproductions3337 6 месяцев назад +2

      Also, it's very dynamic. I appreciate how you use input statements to allow users to create their own, desired limit for how long *start* can be less than *n* . This means that they can make the code print values all the way up to the *nth* value, as long as *start* is less than *n* . *start* may be 0, but you incremented it by 1 (start + 1), which means that once the original integer for the variable *start* is printed, _1_ integer must be added to *start* until it is not longer less than *n* ; otherwise, until it is greater then *n* . Great work!
      If you instead put "while start

  • @venugopal3758
    @venugopal3758 7 месяцев назад +1

    No one can beat Neso academy

  • @TechyNert
    @TechyNert Год назад +1

    Your Teaching Method Is Amazing:)😍

  • @TaellaTa
    @TaellaTa 10 месяцев назад +1

    So articulate, Thank you!

  • @HosamAlhabshi-xo7zi
    @HosamAlhabshi-xo7zi 10 месяцев назад +1

    thank you that was detailed and easy to understand

  • @techtalk6069
    @techtalk6069 9 месяцев назад +1

    very very nice explanation , thanks a lot....

  • @shivamchakrawarti8262
    @shivamchakrawarti8262 Год назад +2

    Very helpful lecture sir

  • @hXXriShA
    @hXXriShA 10 дней назад

    thanks bro very useful

  • @letsexploreourselves4002
    @letsexploreourselves4002 3 месяца назад

    Amazing Explanation .Thanks a lot sir 🙏

  • @burningshub8954
    @burningshub8954 7 месяцев назад +2

    so beautiful so elegant just teaching like a wow❤❤❤

  • @ayub365
    @ayub365 11 месяцев назад +1

    awesome...Thanks a lot, Subscribed.

  • @BUISNESSWISDOM
    @BUISNESSWISDOM 11 месяцев назад +1

    Thank you sir!

  • @idowuibitayobright3117
    @idowuibitayobright3117 9 месяцев назад +1

    Exceptional!

  • @tejaswiphadatare1489
    @tejaswiphadatare1489 Месяц назад

    Thank you 😊

  • @NOno-i9e
    @NOno-i9e Год назад +1

    please upload the playlist about Queues in DS, please!

  • @anushka136
    @anushka136 Год назад +1

    Can you upload for loop because I can understand very well by seeing your video

  • @jeedhy
    @jeedhy 6 месяцев назад

    Thank you very much, you are the best!

  • @bacteria4331
    @bacteria4331 Год назад +1

    Thank you so much!!

  • @ՏԵվՏíղցհ
    @ՏԵվՏíղցհ Год назад +1

    Awesome 👍

  • @invincible6230
    @invincible6230 Год назад

    Sorry for the question of the different topic than this but
    #include
    int main()
    {
    int i = 5;
    while (i-- >= 0)
    {
    printf("%d ", i);
    }
    return 0;
    }
    why does -1 prints in output?

    • @vnsshorts7119
      @vnsshorts7119 Год назад

      i think you want to say thai in the last run you are getting -1. . it is because you are using i--.. which mean first i will be compared with 0 and then i will be decremented.
      so in last run when i is 0 condition return true and i become -1due to i - - and hence it gives -1
      solution: use - - i instead of i--

    • @invincible6230
      @invincible6230 Год назад

      @@vnsshorts7119 Thank you for your explaination

  • @tnsobur1783
    @tnsobur1783 4 месяца назад

    Thanks brother!

  • @DanielleCohn-t4s
    @DanielleCohn-t4s 5 месяцев назад

    # very valuable

  • @bharathilakshmi-t7b
    @bharathilakshmi-t7b 6 месяцев назад

    Hi sir,can u explain y stop value shud be stop-1 y its built like that

  • @mandeepgoyal7895
    @mandeepgoyal7895 9 месяцев назад +1

    Gud🎉

  • @jwl796
    @jwl796 10 месяцев назад +1

    thxs❤

  • @jasonhallock3773
    @jasonhallock3773 9 месяцев назад +1

    Can the start stop and step be variables.