+ 1

Which prlm in this code? Please tell me...

class user: name = " " email = " " password = " " login = False def login(self): email = input("email: ") password = input("password: ") if email == self.email and password == self.password: login = True print("logged in successful") else: print("logged in failed") def logout(self): login = False print("logged out") def islogin(self): if self.login: return True else: return False def profile(self): if islogin(): print(self.name,"\n",self.email) else: print("User is not logged in") user1 = user() user1.name = " hasibul " user1.name = "abcd@kmail.com" user1.pssword = "kkkk" user1.login()

13th Apr 2020, 12:31 PM
Hasibul Hasan
Hasibul Hasan - avatar
1 Antwort