Course Python


#1

Hello everyone,
I have a problem with Python course.

I can't finalize Step 12, appear the next error:

The code is the next:

#¡Escribe tus dos sentencias "if" a continuación!

def funcion_true():
    if  "hola" == "hola"              #¡Completa aquí tu sentencia `if`!
        return True        #Asegúrate de que esta función retorne `True`

def funcion_false():
    if "hola" == "hola"               #¡Completa aquí tu sentencia `if`!
        return False       #Asegúrate de que esta función retorne `False`

type or paste code here
`

Can you help me?
Thanks.


#2

In python, if statements need to end with a colon. This is the syntax:

if ___condition___:
    # Do something
else:
    # Do something

Basically, this:

if  "hola" == "hola"
        return True

Should become this:

if  "hola" == "hola":
        return True

And the same goes for the if statement in function_false().