Question: I'm working on the Python ATM simulator. The extended functionality part for admin. Here is what I have but I'm hung up on bold/italic area

I'm working on the Python ATM simulator. The extended functionality part for admin.

Here is what I have but I'm hung up on bold/italic area... what am I missing here?

admin_username = "SysAdmin" admin_password = "1357" while True: print("Username: ", end=" ") user = input() print("Password: ", end=" ") pw = input() if user == admin_username and pw == admin_password: print("Welcome admin") else: print("Incorrect, please reenter") print("1 - add user, 2 - delete user, 3 - plot") option = int(input(1,2,3)) if option == 1: print("Enter Username: ", end=" ") user = input() print("Enter Password: ", end=" ") pw = input() with open('adminsample.txt', 'w') as f: data = f.write() with open( user, "a+") as g: g.write(pw) elif option == 2: import os if os.path.exists("admindemofile.txt"): os.remove("admindemofile.txt") else: print("The file does not exist") elif option == 3: users = [] pws = [] with open("adminsample.txt", "r") as f: for user in f: users.append(user) with open(user, "r") as g: pw = g.read() pws.append(pw) import matplotlib.pyplot as plt plt.bar(pws, users, align='center', alpha=0.5) plt.xticks(pws, users)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!