Video není dostupné.
Omlouváme se.

while Loop with else in Python

Sdílet
Vložit
  • čas přidán 29. 09. 2023
  • Python Programming: while Loop with else in Python
    Topics discussed:
    1. Introduction to while Loop with else.
    2. Use of while Loop with else.
    Python Programming Playlist: • Python Programming
    Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
    Contribute: www.nesoacadem...
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacadem...
    Website ► www.nesoacadem...
    Forum ► forum.nesoacad...
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #PythonByNeso #PythonProgramming #WhileLoopWithElse

Komentáře • 12

  • @alisheik3076
    @alisheik3076 Před 3 měsíci +1

    Great explanation sir.. Take a bow..❤ I want to learn OOPS in python from you.. could you please make videos on it..

  • @PremKumar.S-it8et
    @PremKumar.S-it8et Před 10 měsíci +3

    Thank your for the video!
    I am currently learning in my college c++ and python from u

  • @yatinshekhar787
    @yatinshekhar787 Před 6 měsíci

    Nice video sir, while else was confusing at first but understood it after I watched it multiple times. Thanks sir

  • @tayyab.sheikh
    @tayyab.sheikh Před měsícem +1

    can't we write it like this:
    fruits = ['apple', 'banana', 'mango', 'strawberry', 'orange']
    while 'orange' in fruits:
    print ('Orange is available')
    break
    else:
    print ('Orange is not available!')

  • @kaneki3194
    @kaneki3194 Před 7 měsíci +1

    Please notice me sir! I really love your explanation. You really elaborated kt clearly to the point that event a monkey like me ca understand. This video helped me understand about while loops and its concept. So I thank you

    • @ericsiboniso
      @ericsiboniso Před 5 měsíci

      youre not a monkey . if you were you wouldnt have the strength to study python youre much more than that and youre smarter than you think

  • @NSHIMIYIMANAAMOS-yi9hs
    @NSHIMIYIMANAAMOS-yi9hs Před 10 měsíci +1

    Thank you sir

  • @venkatraman_padmanaban
    @venkatraman_padmanaban Před 6 měsíci

    I have actually had the program question and tried to write my own code. Below is my code:
    fruits = ['orange','banana','mango','orange']
    i = 0
    length = len(fruits)
    temp = 0
    #print(length)
    while i < length:
    if fruits[i] == 'orange':
    temp = 1
    i += 1
    else:
    if temp == 0:
    print("Orange is not present in the list")
    else:
    print("Orange is present in the list")
    But, I was really amazed of seeing how while with else has reduce the lines of code and our pain too!!!
    Thank you very much for this useful content!

  • @tonykay07
    @tonykay07 Před 10 měsíci

    When are you planing of making videos on Object Oriented Programing in Python
    Thank You

  • @thirdeyegaming4310
    @thirdeyegaming4310 Před 10 měsíci

    sir ekse aage ka video kha h sir ji
    plz upload this

  • @masteragentonly
    @masteragentonly Před 10 měsíci

    First to watch, comment