Question: Question 8 ( 1 point ) Saved # What does the following statements do ? counter = { } # . . . some code,
Question point
Saved
# What does the following statements do
counter
# some code, not shown
printcountergetfoundThing
counterfoundThing
prints if 'foundThing' is not in the dictionary
prints the value associated with "foundThing" if it is in the dictionary
prints the max value of "foundThing" in the dictionary or
increments the counter for "foundThing" in the dictionary
causes an error if "foundThing" does not have an entry before hand
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
