Video není dostupné.
Omlouváme se.
while Loop with else in Python
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
Great explanation sir.. Take a bow..❤ I want to learn OOPS in python from you.. could you please make videos on it..
Thank your for the video!
I am currently learning in my college c++ and python from u
Nice video sir, while else was confusing at first but understood it after I watched it multiple times. Thanks sir
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!')
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
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
Thank you sir
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!
When are you planing of making videos on Object Oriented Programing in Python
Thank You
sir ekse aage ka video kha h sir ji
plz upload this
First to watch, comment
Geo g 😂 o yar tu bi