Forum Archive

Verifying a password

blindscubajr

Why isn’t this code working?
Help plz👍

username = input('Enter Username>>> ') 

if username == 'silas':

    print('Access granted')
    print('Hello SILAS')

elif username == 'silas': False
print('Access Denied')
mcriley821
elif username != 'silas':

You have the wrong syntax

ccc
username = input('Enter Username>>> ') 

if username == 'silas':
    print('Access granted')
    print('Hello SILAS')
else:
    print('Access Denied')