Just a Simple login that uses Dictionary. Don't know if it work on a console. Plus i can't figure out a way to add something to the dictionary while the program is running.
Neoriz
you can try it'sdatabase={'username': '1234', 'username2': '5678', 'username3': '9012'}
name = raw_input('Enter username: ')
ask = raw_input('Enter pin: ')
if ask in database[name]:
print 'Welcome', name
else:
print 'Invalid code'
Neoriz
waduh... saiia rada rada ga ngerti nii kang.. bukan faknya saiia nii :(
ReplyDeleteterus faknya apa bro
ReplyDelete