I am writing a small login script at school, but I'm having trouble with a certain line of code. Here is the full thing:
I have asked my teacher but she isn't quite sure herself.
#!/bin/python3
def login ():
username = input ('username')
password = input ('password')
if username == 'TestAcc'*
if password == 'spectretest':
print ('Welcome to the SpectreOS developer test system')
else print ('invalid password')
else print ('invalid username')
*I get an error message on this line and I am not sure of the problem. Thanks for your help. :)