import time
username = input()
password = input()
print ("username:", username)
if username == ("bubble") #<<----Keeps On Saying Invalid Syntax, I Dont Know Why?
print ("password:", password)
if password == ("money")
print ("Successfully Logged On")
if hour>24:00:
print('Good Morning!')
if hour>12:00:
print('Good Afternoon!')
if hour>12:00:
print('Good Evening!')
print ("Please Enter A Command")
# Still In Progress But I Cant Finish With The Current Unknown Errors. :(
# Thanks! :)
Python Login Help :/?
Details:
Responses (3)
You should do the tutorial, and get an IDE which is more specific about syntax errors, amongst many more significant benefits (for example, eclipse states "expected ::").
1) Add colon (:) in the end of the if statement, regardless of brackets.
2) Every statement after an if (ie prints) must be indented.
3) That is not how modules work, nor time types are written (ie "hour" which is undefined, and 24:00 which breaks syntax). It's the wrong module too - that would be datetime. Refer to the manual for any module with which you're unfamiliar.