- 3

A Python statement to declare a Dictionary named ClassRoll with Keys as 1, 2, 3 and corresponding values as 'Reena', 'Rak

how do I code in python for the question mentioned above?

5th Oct 2020, 4:49 AM
Arpan Pradhan
Arpan Pradhan - avatar
3 odpowiedzi
+ 3
Show your attempt first
5th Oct 2020, 4:58 AM
Ayush Dwivedi
Ayush Dwivedi - avatar
+ 1
create a dictionary name ClassRoll and use 1,2,3 as keys, use Reena, Rak.. as values for respective keys eg myDict = { 1:"value1", 2:"value2"} Here, myDict is the name of dictionary 1,2 are keys value1, value2 are the respective values
5th Oct 2020, 4:58 AM
‎ ‏‏‎Anonymous Guy
+ 1
thank you anonymous guy
5th Oct 2020, 5:00 AM
Arpan Pradhan
Arpan Pradhan - avatar