[Solved] Making Bank account in Python 3
[ad_1] Consider saving all the details in a dictionary with the primary key as the name and pin & balance as secondary keys. Then, you can save it to a json file. import json accdict ={} accdict[‘Obi’] = {‘Name’:’Obi Ezeakachi’,’Pin’:1111,’Balance’: 5000} Continue for all the accounts. with open(‘accounts.json’,’w’) as f: f.write(json.dumps(accdict)) You can now manipulate … Read more