Computer Science
Write a Python statement to declare a Dictionary named ClassRoll with Keys as 1, 2, 3 and corresponding values as 'Reena', 'Rakesh', 'Zareen' respectively.
Python Dictionaries
9 Likes
Answer
ClassRoll = {1:'Reena', 2:'Rakesh', 3:'Zareen'}
Answered By
5 Likes
Related Questions
If a is (1, 2, 3)
- what is the difference (if any) between a * 3 and (a, a, a) ?
- Is a * 3 equivalent to a + a + a ?
- what is the meaning of a[1:1] ?
- what is the difference between a[1:2] and a[1:1] ?
What is the difference between (30) and (30,) ?
Why is a dictionary termed as an unordered collection of object?
What type of objects can be used as keys in dictionaries ?