The document discusses while loops in Python, providing examples of using a while loop to: print the first five natural numbers; print even numbers between 1 and 10; print odd numbers between 30 and 70; and print even numbers between 40 and 60 in reverse order. An additional example shows using a while-else loop to print "Welcome to Bal Bharati" five times and "Stop" once the condition becomes false.
The document discusses while loops in Python, providing examples of using a while loop to: print the first five natural numbers; print even numbers between 1 and 10; print odd numbers between 30 and 70; and print even numbers between 40 and 60 in reverse order. An additional example shows using a while-else loop to print "Welcome to Bal Bharati" five times and "Stop" once the condition becomes false.
The document discusses while loops in Python, providing examples of using a while loop to: print the first five natural numbers; print even numbers between 1 and 10; print odd numbers between 30 and 70; and print even numbers between 40 and 60 in reverse order. An additional example shows using a while-else loop to print "Welcome to Bal Bharati" five times and "Stop" once the condition becomes false.
The document discusses while loops in Python, providing examples of using a while loop to: print the first five natural numbers; print even numbers between 1 and 10; print odd numbers between 30 and 70; and print even numbers between 40 and 60 in reverse order. An additional example shows using a while-else loop to print "Welcome to Bal Bharati" five times and "Stop" once the condition becomes false.
five natural numbers WAP using the while loop to print the even numbers between 1 and 10. WAP using the while loop to print all odd numbers between 30 to 70. WAP using the while loop to print the even numbers between 40 and 60 in reverse order. WAP using the while- else loop to print the text “Welcome to Bal Bharati “ five times and print “ Stop” once the condition Becomes false.