Salut !
def max_dico(dico: dict):
max_numbers = 0
pseudo = ""
for key, value in dico.items():
if value > max_numbers:
max_numbers = value
pseudo = key
return (pseudo, max_numbers)
Copyright © 2024 ELIBRARY.TIPS - All rights reserved.
Lista de comentários
Salut !
def max_dico(dico: dict):
max_numbers = 0
pseudo = ""
for key, value in dico.items():
if value > max_numbers:
max_numbers = value
pseudo = key
return (pseudo, max_numbers)