DiYane

*bast player*

Aug 12th, 2021
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. name_of_mvp = ''
  2. num_of_goals_of_mvp = 0
  3.  
  4. while True:
  5.     player_name = input()
  6.     if player_name == 'END':
  7.         break
  8.     goals_num = int(input())
  9.  
  10.     if goals_num > num_of_goals_of_mvp:
  11.         name_of_mvp = player_name
  12.         num_of_goals_of_mvp = goals_num
  13.  
  14.         if goals_num >= 10:
  15.             break
  16.  
  17. print(f'{name_of_mvp} is the best player!')
  18. if num_of_goals_of_mvp >= 3:
  19.     print(f'He has scored {num_of_goals_of_mvp} goals and made a hat-trick !!!')
  20. else:
  21.     print(f'He has scored {num_of_goals_of_mvp} goals.')
Advertisement
Add Comment
Please, Sign In to add comment