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:
option 1 is correct.
okay.
please go on with it.
Answered by
0
Answer:
i ) Day={1:'monday',2:'tuesday',3:'wednesday'}
Explanation:
Dictionary has two main things i.e {key:'value'}.
here keys are 1,2,3 respectively.
and their values are monday, tuesday, wednesday.
Therefore, We can decleare the dictionary as:
Day={1:'monday',2:'tuesday',3:'wednesday'}
Learn More on Brainly.in:
Given the lists L=[1,3,6,82,5,7,11,92] , write the output of print(L[2:5])
brainly.in/question/25870565
Suppose a tuple T is declared as T = (10, 12, 43, 39) , which of the following is incorrect? a) rint * (T[1]) b) T[2] = - 29 c) print * (max * (T)) d) print (len * (T))
https://brainly.in/question/30819138
Similar questions