Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player_name = input()
- max_goals = -10
- winner_name = ""
- hattrick = False
- while player_name != 'END':
- current_name = player_name
- goals = int(input())
- if goals > max_goals:
- max_goals = goals
- winner_name = player_name
- if goals >= 3:
- hattrick = True
- if goals >= 10:
- break
- player_name = input()
- print(f"{winner_name} is the best player!")
- if hattrick:
- print(f"He has scored {max_goals} goals and made a hat-trick !!!")
- else:
- print(f"He has scored {max_goals} goals.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement