help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

help

Fill in the blanks to iterate over the dictionary and update the values to zero: index temp. { temp[ ] = 0 }

18th Sep 2016, 11:53 AM
Enoch George
Enoch George - avatar
2 Answers
0
you can use "for in loop" to do this syntax is : for i in array { array[i] = 0 } try to replace it!
18th Sep 2016, 11:49 PM
Nplus Chang
Nplus Chang - avatar
0
For index in temp.keys { temp[ index ] = 0 }
5th Feb 2022, 11:20 PM
Belkassem
Belkassem - avatar