Testing with dictionaries | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Testing with dictionaries

Why would 1 is here only print once and how can I fix it and explain your answer please dictionary = {1:2, 2:1, 1:2} for key in dictionary: if key == 1: print("1 is here")

7th Jan 2022, 11:13 PM
Darkpidgeon 14
0 Answers