Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

atm python

$
0
0

please help me i m stuck ..i am getting a run time error here's the code :

with_draw,balance =input().split()
with_draw=int(with_draw)
balance=float(balance)


if with_draw>balance or with_draw<0 or with_draw%5!=0 or balance-with_draw<.5 or balance< 0:
    print(balance)
else:
    balance-=with_draw
    balance-=0.5
    print(balance)

Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>