I'm trying to save a username register input into a list permanently (as in it will still be there even after I close the file) where I can then access it. I'm trying to create a login system. Sorry if this question sounds very idiotic because I'm an absolute newbie to coding.
Example:
list_of_users = ['Elias', 'James']
new_user = None
new_user = input('Create new user: ')
list_of_users.append(new_user)