Challenge: Annotate the Function
Oppgave
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 5
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 4.35
Challenge: Annotate the Function
Sveip for å vise menyen
Oppgave
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 4.35Seksjon 1. Kapittel 5
single