Challenge: Annotate the Function
Tâche
Swipe to start coding
You have the implemented is_prime()
function. Annotate this function:
- The function should receive the integer type value.
- The function should return the boolean type value.
- 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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 5
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Awesome!
Completion rate improved to 4.35
Challenge: Annotate the Function
Glissez pour afficher le menu
Tâche
Swipe to start coding
You have the implemented is_prime()
function. Annotate this function:
- The function should receive the integer type value.
- The function should return the boolean type value.
- 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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Awesome!
Completion rate improved to 4.35Section 1. Chapitre 5
single