Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first_game_result = input()
- second_game_result = input()
- third_game_result = input()
- wins = 0
- draws = 0
- loses = 0
- len(first_game_result)
- first_digit = first_game_result[0]
- second_digit = first_game_result[2]
- if first_digit > second_digit:
- wins += 1
- elif first_digit == second_digit:
- draws += 1
- else:
- loses += 1
- len(second_game_result)
- first_digit = second_game_result[0]
- second_digit = second_game_result[2]
- if first_digit > second_digit:
- wins += 1
- elif first_digit == second_digit:
- draws += 1
- else:
- loses += 1
- len(third_game_result)
- first_digit = third_game_result[0]
- second_digit = third_game_result[2]
- if first_digit > second_digit:
- wins += 1
- elif first_digit == second_digit:
- draws += 1
- else:
- loses += 1
- print(f'Team won {wins} games.')
- print(f'Team lost {loses} games.')
- print(f'Drawn games: {draws}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement