0

Dictionary get() method

The default value is not returned when key is unavailable in dictionary. For example, if the input is Popcorn, 5 should returned Can someone help? https://code.sololearn.com/cdf0z0qF6yz4/?ref=app

28th Mar 2020, 6:39 PM
Rini
Rini - avatar
1 Odpowiedź
+ 1
Right, if condition was unnecessary. Thanks!
28th Mar 2020, 6:56 PM
Rini
Rini - avatar