+ 1
(Python) Can I iterate through a dictionary like this?
Is it the right way to iterate through a dictionary like this? squares = {1: 1, 2: 4, 3: 9, 4: 16,} for i in squares: print(i,"=", squares[i])
1 Odpowiedź
+ 3
yes, you can insert that code into codeplaygrpumd to see for yourself