Dictionary get() method | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 1
Right, if condition was unnecessary. Thanks!
28th Mar 2020, 6:56 PM
Rini
Rini - avatar