How to use while loop in python | Full Python Course in Hindi

hey Sushil ke Full Python Course for Beginners me new video – How to use while loop in python upload kiya gaya hai aur isme following questions ke answer diye gaye hain:

while loop ke syntax ka discription.
while loop ko kaise use kare?
python me while loop ko kaise use karete hain?
kya python ka while loop baki programming language ke while loop se alag hai/
while loop me condition kaise use kare?
break aur continue ko kaise use kare while loop me?

Aur bhi kai aspect par baat ki gai hai python while loop ke is video me.

'''
loop
    while
    for
not do_while
loop:
    start i = 1
    end 1000 = i < 1001
    incre/dec i++ = pre-increment / post-increment i--
'''

i = 7
while i <= 5:
    
    i += 1
    if i == 4:
        # break use kaarne pe jaha condition sahi mili wahi stop ho jayega
        # break
        # continue jaha condtion sahi mili use hata ke aage badh jayega
        continue

    print('I value: ',i)
else:
    print('While loop end')

heySushil

Software Developer | Python | Data Science | Trainer | Motivation Speaker | Poetry | Animals Lover | Photographer |🧘🏻‍♂️Yoga | YouTube @heykyakaru

Leave a Reply