Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- account = 0.0
- amount = input() # "50.56"
- while amount != "NoMoreMoney":
- amount = float(amount)
- if amount < 0:
- print("Invalid operation!")
- break
- account += amount
- print(f"Increase: {amount:.2f}")
- amount = input()
- print(f"Total: {account:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement