Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monney_need = float(input())
- months = int(input())
- end_months_monney = 0
- # current_monney = 0
- total_money = 0
- for every_month in range(months):
- end_months_monney += monney_need * 0.25
- if not months % 2 == 0 and months != 1:
- end_months_monney -= monney_need * 0.16
- elif months % 4 == 0:
- end_months_monney += end_months_monney *0.25
- total_money = end_months_monney - monney_need
- if total_money >= monney_need:
- print(f"Bravo! You can go to Disneyland and you will have {total_money}lv. for souvenirs")
- else:
- print(f"Sorry. You need{total_money}lv. more")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement