Question: When working with loops in Python, which of the following scenarios correctly illustrates the use of a while loop instead of a for loop? A
When working with loops in Python, which of the following scenarios correctly illustrates the use of a while loop instead of a for loop?
A Iterating over a fixed sequence of numbers.
B Executing a block of code a specific number of times, known in advance.
C Continuously processing user input until the user decides to quit.
D Iterating through each character in a string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
