- 3

What will be the output of the following my_dict = {} my_dict[1] = 1 my_dict['1'] = 2 my_dict[1.0] = 4 sum = 0 for k in my

Tell

28th Jan 2022, 7:49 AM
Sampada Sharma
3 odpowiedzi
+ 1
Sampada Sharma Please write your code in the description of your question (where you have wrote 'tell'). So edit it and alert us when done 🙂
28th Jan 2022, 9:09 AM
NEZ
NEZ - avatar
0
Error will be the output , as there is a error in the for statement.
28th Jan 2022, 8:09 AM
hamishhr
hamishhr - avatar
0
Sampada Sharma it is impossible for us to answer your question without seeing the whole program. It is very easy for you to answer your own question by running the program in the Sololearn Code Playground.
29th Jan 2022, 6:08 PM
Brian
Brian - avatar