Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
432 B
6
Indexable
Never
number_of_games = 3
wins, losses, ties = 0, 0, 0

for game in range(1, number_of_games + 1):
    game_result = input()
    if int(game_result[0]) > int(game_result[-1]): wins += 1 
    elif int(game_result[0]) == int(game_result[-1]): ties += 1
    elif int(game_result[0]) < int(game_result[-1]): losses += 1

print(f"Team won {wins} games.")
print(f"Team lost {losses} games.")
print(f"Drawn games: {ties}")