Question 3
When do you use while loop instead of a for loop?
To make sure a correct number is entered
To loop exactly 10 times
To loop untll a certain condition is reached
To perform number calculations
Question 4
What is wrong with the following code?
for 1 in (7,10) :
print(1)
The first line should be (for i in range(7, 10):
The first line should be for 1= range (7,10):
The range function should include three parameters (7,10,1)
The for loop should include 1=1+1