for Loop vs. while Loop in Python

Sdílet
Vložit
  • čas přidán 29. 10. 2023
  • Python Programming: for Loop vs. while Loop in Python
    Topics discussed:
    1. Comparison between for Loop and while Loop.
    Python Programming Playlist: • Python Programming
    Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
    Contribute: www.nesoacademy.org/donate
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacademy.org/recommend...
    Website ► www.nesoacademy.org/
    Forum ► forum.nesoacademy.org/
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #PythonByNeso #PythonProgramming #forLoopVSwhileLoop

Komentáře • 12

  • @SergeyKloninger
    @SergeyKloninger Před 5 měsíci +2

    You can set a Limit of iterations in while Loop, it's possible, If you use Expression in python:
    n = 10,
    i = 0
    while(i < n):
    print("Do a Loop")
    i += 1

    • @BEHEADED_1
      @BEHEADED_1 Před 4 měsíci +1

      range accomplishes the same thing but yeah

  • @iffatshaikh7292
    @iffatshaikh7292 Před 8 měsíci

    Sir awesome explanation I have gone through so many channels for same concepts but you r way of explanation is awesome sir please teach sql also and where we can practice

  • @Doggy_Styles_Coding
    @Doggy_Styles_Coding Před 8 měsíci +1

    while is kinda cool if you have just an object that can transform to "None" after some time or you have an integer which will reduced to zero you jsut have to type while(number := Number -1)

  • @yathishkumary1867
    @yathishkumary1867 Před 8 měsíci

    please continue making videos on compiler design. thank you ❤❤

  • @mindyourown6320
    @mindyourown6320 Před 3 měsíci

    Thank you sir 😊

  • @thesuperstomper4776
    @thesuperstomper4776 Před 3 měsíci

    Thanks so much

  • @UsmanAliAli-od7eg
    @UsmanAliAli-od7eg Před 8 měsíci +1

    Thanks you dear jaspreet sing sir from pakistan 🇵🇰🇵🇰❤❤and long live for jaspreet sing sir

  • @abhieditk5590
    @abhieditk5590 Před 8 měsíci

    Thanks for helping me ❤😂🎉

  • @saikumarkotra3139
    @saikumarkotra3139 Před 8 měsíci +4

    Sir you are teaching is good but and try to execute the program

  • @Tom-ig3rj
    @Tom-ig3rj Před měsícem +2

    he's built different

  • @mllokesh331
    @mllokesh331 Před 8 měsíci

    Please add face . because it is more helpful for learning and understanding please understand 🎉🎉🎉🎉❤. tq for video 😊