I've just begun learning Python and I'm using the IDLE ide to learn programming. I've been trying a basic code I saw on the official site but it keeps saying 'Incorrect Syntax' and highlights the keyword 'else' here's the program:
a=40
if a <= 40:
print("True")
else:
The 'else' is highlighted and I'm told it's a syntax error. Can anyone tell me what I'm doing wrong?