I can't seem to figure out what is wrong with my code. I am getting none as a response to the numbers I input. Is it my spacing that is causing the error?
Any help will be appreciated!

Replace this line with your code.


Hey! Try printing your function to the console like this:

print is_prime(8)

And your for-loop should be one indent less. It will never be reached with the position it currently has. (After a return statment)


There might be a problem with the indentation, please post your code like this:

 your code


2 posts were split to a new topic: 6. is prime


@phlangabeza, i moved yours to your own topic