+ 2

Please who knows how this code works?

Python dictionaries https://code.sololearn.com/c7Zp6ia1i0Z2/?ref=app

19th Apr 2021, 7:20 PM
Obinna Anosike
Obinna Anosike - avatar
4 Answers
+ 1
First this code select value with key=3 (value=5). On the second you try to select value with nonexistent key=5 and get an error
19th Apr 2021, 7:27 PM
Igor Kostrikin
Igor Kostrikin - avatar
+ 1
Thank you
20th Apr 2021, 9:25 AM
Obinna Anosike
Obinna Anosike - avatar
0
Igor Kostrikin How did I select a value with non existent key 5
19th Apr 2021, 7:39 PM
Obinna Anosike
Obinna Anosike - avatar