jeudi 24 août 2017

Implementing if-else conditionals with Python

I have to make a login but for some reason its not working. Could I have some help please?

I've got this code but I can not get it to work.

username=input("please enter your username")
password=input("please enter your password")
if username=="student1":
password=="password123"
print("accsess granted")

else username!="student1":
password !="password123"
print "inncorect login"

Aucun commentaire:

Enregistrer un commentaire