Here’s my code:
to_do = True
If to_do == true
Print ("done")
else:
Print ("to do\n","voice recognition\n","commands")
>Solution :
There are multiple reasons why this doesn’t work.
- You can’t put everything in one line. Each statement needs to be in a line, with proper indenting.
- print method should be lowercase.
- You need a
:after an if statement - if keyword should also be lowercase
- True boolean should always be upper-case
Here’s how it should look like:
to_do = True
if to_do == True:
print ("done")
else:
print ("to do\n","voice recognition\n","commands")