I'm having problems with adding accounts to mapping with function append.
mapp = ["example"]
example1 = raw_input("Enter Username: ")
if example1 in mapp:
print "yay"
else:
print ("Forgot Username eh?")
example = raw_input("Enter New Username: ")
if example not in mapp:
mapp.append(sana)
So as you can see from the script, if i enter username "example", program prints "yay". And if i type wrong i can create new "account" what i can use next time when i want my program to print "yay". But when i try to add new "account" it doesn't work. I don't get any error messages or anything but it just doesn't add new "account" to mapp. So any ideas ?
sanadefined?