Jan-17-2018, 09:58 PM
I need a help because of my project.I have 2 usernames and 2 passwords.But ı can not combine them.Also, I'm new so, ı have to use elemantry or basic codes.
please help me :)
this code give error why ??
notice: ahmet is username and its's password is sehir123
meryem is other username and it's password is 4444
please help me :)
this code give error why ??
notice: ahmet is username and its's password is sehir123
meryem is other username and it's password is 4444
message="***Welcome to Sehir Online Market***" message2="Please log in by providing your user credentials:" print message,('\n'),message2 database={['ahmet']=='sehir123',['meryem']=='4444'} name=raw_input('Username: ') ask=raw_input('Password: ') while True: if ask in database: print "Succesfully logged in!" else: print "Your user name and/or password is not correct. Please try again!" break