Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = input()
- best_player = ''
- max_goals = float("-inf")
- while True:
- if player == 'END':
- break
- goals = int(input())
- if goals > max_goals:
- max_goals = goals
- best_player = player
- if goals >= 10:
- break
- player = input()
- print(f'{best_player} is the best player!')
- if max_goals >= 3:
- 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