In Python, a while loop continues executing its block of code as long as the specified ________ is True.
Added by Daniel H.
Step 1
This expression is evaluated before each iteration of the loop. Show more…
Show all steps
Your feedback will help us improve your experience
Haricharan Gupta and 71 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
How to create an infinite loop in Python using a for loop?
Haricharan G.
Write a while loop that prints from 1 to user_num, increasing by 1 each time. Sample output with input: 4 1 2 3 4
Shelayah R.
I have a Python programming question: Write a program that prints all the even numbers divisible by 3 but not divisible by 7 between 1 and 200. Use while loop with continue statement. When the even number is divisible by 3 but not 7 continue statement should allow you to go into the next iteration of the loop without printing the number.
Akash M.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD