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