"Check if a number is prime" Exercise Not Recognizing Correct Answer #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I've submitted the following code:
I have tested this code in visual studio to verify it works when called. Genepy says "I tried is_prime(1) and it returned None." It's expecting a boolean True or False. When I call is_prime(1) with the same code in visual studio it says False, not None.
@BusterOfTheBeans Your function prints some result, but does not return anything (well, technically, it returns
None). Update your function to return the result.@mdk That may be a new case for the checker to generate a proper help message? "Maybe you forgot to return a value from your function?"