Advertisement
Spocoman

Wedding Party

Oct 6th, 2023
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. guests = int(input())
  2. budget = int(input())
  3.  
  4. budget -= guests * 20
  5.  
  6. if budget < 0:
  7.     print(f"They won't have enough money to pay the covert. They will need {abs(budget)} lv more.")
  8. else:
  9.     print(f"Yes! {round(0.40 * budget)} lv are for fireworks and {round(0.60 * budget)} lv are for donation.")
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement