Question: I need to create a python program that uses nested dictionary as an input def fun 2() i have this list with nested dictionaries in
I need to create a python program that uses nested dictionary as an input
def fun 2()
i have this list with nested dictionaries in it [{4: 4}, {4: 4}, {4: 4}, {1: 4}, {2: 4}, {2: 4}] . What i want is to make a function that figures out number 4 has had the highest value 4, 3 times in a row so its the winner. To read the tuple for example number 1 has had the value four once. So first ranking is for number 4 next number 2. I also want to implement a function if number 2 and 4 get in to a tie the bigger number wins
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
