I'm making a password program that I want to launch every time I turn on my computer. Anyone know how I'd do this? Also, is it possible to make it so that the user is prompted to enter the password before any other files or applications can be accessed?
Here's what I have so far:
#auto open when computer is turned on #unable to access other programs/files import os password = str(input('Enter password: ')) if(password == 'rabbit'): print("logging on...") #program closes. else: print("This computer is shutting down...") os.system("shutdown -h now")