DEV Community

hebaShakeel
hebaShakeel

Posted on

If Else Statements in Python

email = input("Enter your email id:" )
password = input("Enter your password:" )

if email == "superpython@gmail.com" and password == "1234":
---print("Welcome")
elif email == "superpython@gmail.com" and password != "1234":
---print("Incorrect password")
---password = input("Enter password again")
---if password == "1234":
------print("Finally correct")
---else:
------print("Still incorrect")
else:
---print("Incorrect credentials")

Top comments (0)