from random import randint
from time import sleep
from operator import itemgetter

players = dict()

for c in range(1, 5):
    sortition = randint(1, 6)
    players[f'jogador{c}'] = sortition

print('Valores sorteados: ')

for k, v in players.items():
    print(f'{k} tirou {v} no dado.')
    sleep(1)

podium = sorted(players.items(), key=itemgetter(1), reverse=True)

print('== RANKING DOS JOGADORES ==')

for i, v in enumerate(podium):
    print(f'{i+1}º lugar: {v[0]} com {v[1]}.')
