For a learning project, I try to write a program that asks for a name, and then display "Access granted" if and only if the name is "Thomas".
So far, I wrote this.
name = str(input("What is your name?"))
if name == "Thomas":
print("Access granted")
I would expect it to work as described earlier, but instead I get this error message :
IndentationError: expected an indented block
What does this message mean and how to fix it ? I don't know where to start.
ifshould be lower-case,print()should be indented) andNameandnameare different identifiers.Nameis not the same asname(case-sensitivity),Ifdoesn't exist in the language, it would beifand you didn't indent it correctly