What's new

Help Python Dictionary inside Function with Rows and Columns

PHC-Zil

Forum Master
Elite
Joined
Nov 3, 2016
Posts
5,845
Solutions
98
Reaction
39,535
Points
5,367
Age
21
Code:
cand_stats = {'Joshua': [192, 147, 186, 114, 98],
              'Aldrin': [48, 90, 12, 21, 230],
              'Dianna': [206, 312, 121, 408, 54],
              'Donna': [37, 21, 38, 39, 201],
              'David': [195, 100, 50, 10, 145]}

def show_candidates(d):
    return d

    for i in cand_stats.values():
        print(i)
        for j in cand_stats.keys():
            print(j)
        print()
Baka pwede pa help sa code ko. Ganito Output sana...
1664953434207.png
 

Attachments

Back
Top