Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = float(input())
- towel = float(input())
- discount = int(input())
- umbrella = towel / 3 * 2
- flip_flops = umbrella * 0.75
- beach_bag = (towel + flip_flops) / 3
- sum = (towel + umbrella + flip_flops + beach_bag) * (100 - discount) / 100
- if budget >= sum:
- print(f"Annie's sum is {sum:.2f} lv. She has {budget - sum:.2f} lv. left.")
- else:
- print(f"Annie's sum is {sum:.2f} lv. She needs {sum - budget:.2f} lv. more.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement