write python program for managing ATM Machine,
first of all the user needs passkey to enter program,
then a list appears:
- to withdraw money.
 
- press 2 to transfer money. 
 
- to deposit money.
 
- to display current balance.
 
 
do the program in  the following 3 different ways:
- the first one without using any loops
 
- the second is using an inifinite loop using while,
 
- and the last way is using the modules concept( create a separated module called accounts.py and import it in the main python program.
 
                                                                     
                            
ATM machine program without using loops:
with inifinite loops using while loop, and with lists(arrays):
ATM machine program using modules
we created a module named : accounts, and then imported it in the main program:
the accounts.py file:
the main.py file:
need an explanation for this answer? contact us directly to get an explanation for this answer