Question: Question 8 ( 1 point ) Saved # What does the following statements do ? counter = { } # . . . some code,

Question 8(1 point)
Saved
# What does the following statements do?
counter ={}
# ... some code, not shown
print(counter.get("foundThing",100))
counter["foundThing"]+1
prints 100 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 100
increments the counter for "foundThing" in the dictionary
causes an error if "foundThing" does not have an entry before hand
 Question 8(1 point) Saved # What does the following statements do?

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!