Question: Consider the following Python code: days = [] while True: name = input('Enter the name of a day: ') if name == '': break
Consider the following Python code: days = [] while True: name = input('Enter the name of a day: ') if name == '': break days.append(name) Which kind of loop is being used? K O a. There are no loops in this code. O b. A nested loop, because there is a loop inside another loop. O C. An interactive loop, because user input determines the number of times that it repeats. O d. An infinite loop, because it will continue repeating until the program is forced to quit. O e A definite loop, because it repeats for a fixed number of times.
Step by Step Solution
3.50 Rating (147 Votes )
There are 3 Steps involved in it
The detailed answer for the above question is provided below Solution The correct answer is c ... View full answer
Get step-by-step solutions from verified subject matter experts
