🔒 Closed Python Dictionary inside Function with Rows and Columns

Status
Not open for further replies.

PHC-Zil

Forum Master
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
 
Status
Not open for further replies.

About this Thread

  • 1
    Replies
  • 539
    Views
  • 2
    Participants
Last reply from:
Ambabo

Online now

Members online
336
Guests online
3,328
Total visitors
3,664

Forum statistics

Threads
2,277,873
Posts
28,979,379
Members
1,229,129
Latest member
bornik69
Back
Top