0
print("invalid password")
print("Hello, please enter the password to continue")
var = input('Enter password:')
if var != ("password")
print("invalid password")

please help me with this

Maurice Meyer
  • 17,279
  • 4
  • 30
  • 47

1 Answers1

3

In python the colons are a must:

print("invalid password")
print("Hello, please enter the password to continue")

var = input('Enter password:')

if var != ("password"):
    print("invalid password")

This'll work.

tripleee
  • 175,061
  • 34
  • 275
  • 318
Navaneeth Reddy
  • 315
  • 1
  • 12