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 pollingactive flag?
responses
pollingactive True
while pollingactive:
name input
What is your name?
response inputWhich mountain would you like to climb someday?
responsesname response
repeat inputWould you like to let another person respond? yesno
if repeat no:
pollingactive 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
