I am trying to make a sign up system in python 3.7 but I don't know how to permanently add a users login to a list and not having to sign up for the same account every time you open the program.
I was not able to make up a solution to this problem.
Usernames = ['User1', 'User2']
Passwords = ['password123', 'password123']
print('Type SU to Sign Up or type LI to Log In!')
UOption = input('Option>> ')
if UOption == 'SU':
    SI = True
    LI = False
    if SI == True:
        print('Signing Up!')
        SUUsername = input('Username>> ')
        SUEmail = input('Email>> ')
        SUPassword = input('Password>> ')
    Usernames.append(SUUsername)
    Emails.append(SUEmail)
    Passwords.append(SUPassword)
    LI = True
    SI = False
I am expecting when I get this working that the user will be able to sign up once then be able to log in if they reopen the program without having to sign up again.
 
     
    