Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def transaction(x,total):
- while x>=0 and total>=5.50:
- if x%5==0:
- result=total-x-0.50
- print(f"{result}")
- else:
- print(f"{x}")
- x,total=list(map(float,input().split()))
- print(transaction(x,total))
Advertisement
Add Comment
Please, Sign In to add comment