Question: 1. What will the following code display as output? x=1 while x <5: print(x) x+=2 2. Write a loop that processes the loop instructions as
1. What will the following code display as output? x=1 while x<5: print(x) x+=2
2. Write a loop that processes the loop instructions as long as the value in the quantity variable is greater than the number 0.
3. Write a loop that stops the loop when the value in the inStock variable is less than or equal to the value in the reorder variable.
4, Write a loop that processes the loop instructions as long as the value in the letter variable is either Y or y.
5. What is the missing instruction? employee=1 while employee < 4: print(employee)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
