In pycham
Copy code to obsidian
“else”
Wrong position
if username == “admin” and password == “123”:
print(“Login successful”)
Login = True
breakelse:
print(“Login failed”)
In pycham
Copy code to obsidian
“else”
Wrong position
if username == “admin” and password == “123”:
print(“Login successful”)
Login = True
breakelse:
print(“Login failed”)
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.