Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Annotate the Function | Annotations
Mastering Python: Annotations, Errors and Environment
course content

Contenido del Curso

Mastering Python: Annotations, Errors and Environment

Mastering Python: Annotations, Errors and Environment

1. Annotations
2. Function Arguments in Details
3. Error Handling
4. Virtual Environment

Challenge: Annotate the Function

Tarea

You have the implemented is_prime() function. Annotate this function:

  1. The function should receive the integer type value.
  2. The function should return the boolean type value.
  3. The function should have a description:
    """This function checks integer number is prime and returns True or False."""

Once you've completed this task, click the button below the code to check your solution.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 5
toggle bottom row

Challenge: Annotate the Function

Tarea

You have the implemented is_prime() function. Annotate this function:

  1. The function should receive the integer type value.
  2. The function should return the boolean type value.
  3. The function should have a description:
    """This function checks integer number is prime and returns True or False."""

Once you've completed this task, click the button below the code to check your solution.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 5
toggle bottom row

Challenge: Annotate the Function

Tarea

You have the implemented is_prime() function. Annotate this function:

  1. The function should receive the integer type value.
  2. The function should return the boolean type value.
  3. The function should have a description:
    """This function checks integer number is prime and returns True or False."""

Once you've completed this task, click the button below the code to check your solution.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Tarea

You have the implemented is_prime() function. Annotate this function:

  1. The function should receive the integer type value.
  2. The function should return the boolean type value.
  3. The function should have a description:
    """This function checks integer number is prime and returns True or False."""

Once you've completed this task, click the button below the code to check your solution.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 1. Capítulo 5
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
some-alt