Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- firts = input()
- second = input()
- third = input()
- win = 0
- loose = 0
- drown = 0
- first_game_left_part = firts[0]
- first_game_right_part = firts[-1:]
- second_game_left = second[0]
- second_game_right = second[-1:]
- third_game_left = third[0]
- third_game_right = third[-1:]
- if first_game_left_part > first_game_right_part:
- win += 1
- elif first_game_left_part < first_game_right_part:
- loose += 1
- elif first_game_right_part == first_game_left_part:
- drown += 1
- if second_game_left > second_game_right:
- win += 1
- elif second_game_left < second_game_right:
- loose += 1
- elif second_game_right == second_game_left:
- drown += 1
- if third_game_left > third_game_right:
- win += 1
- elif third_game_left < third_game_right:
- loose += 1
- elif third_game_right == third_game_left:
- drown += 1
- print(f"Team won {win} games.")
- print(f"Team lost {loose} games.")
- print(f"Drawn games: {drown}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement