Is it possible to have more than one key value of each character in dictionary data structure ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it possible to have more than one key value of each character in dictionary data structure ?

Explain the way if possible to have more than one key value of each character in dictionary data structure .

24th May 2020, 1:34 AM
Ashwini Burnwal
Ashwini Burnwal - avatar
2 Answers
0
Yes, the values can be in a list, a tuple, or even another dictionary!
24th May 2020, 1:43 AM
Slick
Slick - avatar
0
teams = {'Bulls':{'players':['MJ', 'Scotty P', 'Rodman'], 'avgwins':80}, 'Blazers':{'players':['Thisguy', 'Thatguy', 'Another'], 'avgwins':60}}
24th May 2020, 1:49 AM
Slick
Slick - avatar