blob: 4e816ad39cb41d85ed28efe46a5b34a06c56df71 (
plain)
1
2
3
4
5
6
7
8
9
10
|
FRUITS = {"apple": 1, "orange": 10}
def pick_fruit(name):
try: # [too-many-try-statements]
count = FRUITS[name]
count += 1
print(f"Got fruit count {count}")
except KeyError:
return
|