Which is the correct form of declaration of dictionary?
(i) Day={1:'monday',2:'tuesday',3:'wednesday'}
(ii) Day=(1;'monday',2;'tuesday',3;'wednesday')
(iii) Day=[1:'monday',2:'tuesday',3:'wednesday']
(iv) Day={1'monday',2' tuesday',3'wednesday']
Answers
Answered by
2
Answer:
(i) Day={1:’monday’,2:’tuesday’,3:’wednesday’}
Explanation:
It's cause dictionaries have only flower brackets on both the ends.
Similar questions