Advertisement
eNeRGy90

Untitled

Nov 29th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.00 KB | None | 0 0
  1. minutes = int(input())
  2. name = input()
  3.  
  4. if minutes == 0:
  5.     print(f"Match has just began!")
  6. if minutes < 45:
  7.     print(f"First half time.")
  8.     if 0 < minutes <= 10:
  9.         print(f"{name} missed a penalty.")
  10.         if minutes % 2 == 0:
  11.             print(f"{name} was injured after the penalty.")
  12.     elif 10 < minutes <= 35:
  13.         print(f"{name} received yellow card.")
  14.         if minutes % 2 == 1:
  15.             print(f"{name} got another yellow card.")
  16.     elif 35 < minutes < 45:
  17.         print(f"{name} SCORED A GOAL !!!")
  18.  
  19. if minutes >= 45:
  20.     print(f"Second half time.")
  21.     if 45 < minutes < 55:
  22.         print(f"{name} got a freekick.")
  23.         if minutes % 2 == 0:
  24.             print(f"{name} missed the freekick.")
  25.     elif 55 <= minutes < 80:
  26.         print(f"{name} missed a shot from corner.")
  27.         if minutes % 2 == 1:
  28.             print(f"{name} has been changed with another player.")
  29.     elif 80 <= minutes <= 90:
  30.         print(f"{name} SCORED A GOAL FROM PENALTY !!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement