koteshkoeziche

Untitled

Jul 20th, 2020
729
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys
  2.  
  3. max_score = - sys.maxsize
  4. current_name = ''
  5. max_name = ''
  6.  
  7. name = input()
  8. while name != 'END':
  9. goal = int(input())
  10. current_name = name
  11.  
  12. if goal > max_score:
  13. max_score = goal
  14. max_name = current_name
  15.  
  16. if goal >= 10:
  17. break
  18.  
  19. name = input()
  20.  
  21. print(f'{current_name} is the best player!')
  22.  
  23. if goal >= 3:
  24. print(f'He has scored {goal} goals and made a hat-trick !!!')
  25. else:
  26. print(f'He has scored {goal} goals.')
RAW Paste Data