0
Help with simple "ATM" code
I am practising classes and I tried to make a deposit/withdraw code. t works but how do I make it run continuesly so the variable values dont reset every time? I tried a while loop but it doesnt work. please help https://code.sololearn.com/cK0nd4nqjQzS sidenote:(I don't know why I can run this code in my IDE but here I get an error)
2 odpowiedzi
+ 5
The reason why you get a problem in sololearn code editor is based on the behaviour of playground. You have to enter all possible inputs in advance. This is not possible as your input is in a while loop. Find more info here:
https://code.sololearn.com/c8pQgA9MTOj5/?ref=app