Python While Else || While Loop || Python
In this we are going to see a basic program on While Loop with else statement in Python Programming Language.


def while_loop_with_else():
    i = 1
    while i <= 10:
        print(i)
        i += 1
    else:
        print("Done with Loop")

while_loop_with_else()

# Coded By Dhiraj Shelke

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post