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.
Aucun commentaire:
Enregistrer un commentaire