Posts by Nix • 1 point
1 post
-
0
votes1
answer707
viewsQ: Is there any way to compare all item values in a python dictionary?
Is there any way to compare all item values in a dictionary? For example: a = {'valor1': 4, 'valor2': 5, 'valor3': 4} b = {'valor1': 2, 'valor2': 2, 'valor3': 8} if a['valor1']*2<b['valor1']:…