Spocoman

Final Competition

May 28th, 2022 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. dancers = int(input())
  2. points = float(input())
  3. season = input()
  4. destination = input()
  5. total = dancers * points
  6.  
  7. if destination == "Abroad":
  8.     total *= 1.5
  9.     if season == "summer":
  10.         total *= 0.9
  11.     else:
  12.         total *= 0.85
  13. else:
  14.     if season == "summer":
  15.         total *= 0.95
  16.     else:
  17.         total *= 0.92
  18.  
  19. print(f"Charity - {total * 0.75:.2f}")
  20. print(f"Money per dancer - {total * 0.25 / dancers:.2f}")
  21.  
Add Comment
Please, Sign In to add comment