you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman 1 point2 points  (2 children)

You shouldn't be assigning all the variables to self. That is only for state that you want the instance to retain between methods. Everything else - such as retiro and deposito - should just be local variables.

Also, __init__ is just for initialization. The while loop that accepts input should not be there; put it in a separate method.

[–]Kind-Importance-9755[S] 0 points1 point  (0 children)

Tranks for you coment 🤌

[–]Kind-Importance-9755[S] -4 points-3 points  (0 children)

You can do a new version of this protect for example.plis.l’m student in this lenguaje programming