Computer Science, asked by malangforky, 6 months ago

4. Which is the correct form of declaration of dictionary?
(i) Fruits = {10; 'Cherry', 20; 'Kiwi', 30; 'Berry', 40; 'Pear'}
(ii) Fruits = {10: Cherry, 20 : Kiwi, 30 : Berry, 40 : Pear}
(iii) Fruits = {10: 'Cherry', 20 : 'Kiwi', 30 : 'Berry', 40 : 'Pear'}
(iv) Fruits = {10, 'Cherry', 20, 'Kiwi', 30, 'Berry', 40, 'Pear'}
Please help

Answers

Answered by Anonymous
3

HERE IS UR ANSWER DEAR,

correct form is option c

coz

dictionary should be in the form of

key : value

and

key should be in immutable

and value should be in muttable

hmm

thats y here

value is in string

Similar questions