Question: In the code that collects responses to a poll, what is the purpose of the polling _ active flag? responses = { } polling _

In the code that collects responses to a poll, what is the purpose of the polling_active flag?
responses ={}
polling_active = True
while polling_active:
name = input("
What is your name? ")
response = input("Which mountain would you like to climb someday? ")
responses[name]= response
repeat = input("Would you like to let another person respond? (yes/no)")
if repeat =='no':
polling_active = False
a.
It controls the order of execution of the code.
b.
It checks if the user's name is valid.
c.
It determines if polling should continue or stop.
d.
It counts the total number of responses.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!