0
password = input("your") if password == "PKMKB" : print("Access Granted") else: print("Access Denied")
PLEASE CAN ANYBODY TELL ME WHY MY CODE IS NOT WORKING. I AM NOOB AT THIS
5 Answers
0
Because you forgot indentation and indentation is compulsory in python
So your program has to be like this :
password = input("your")
if password == "PKMKB" :
print("Access Granted")
else:
print("Access Denied")
0
Thanx Bro
0
You are welcome
0
Bro it worked with the same password.