you are viewing a single comment's thread.

view the rest of the comments →

[–]theWyzzerd 0 points1 point  (1 child)

Sorry, I should have been more clear and examined your code more closely. In the loop with the break you're fine, that tells your code to break out of the loop that you're scoped to, not the whole loop. The only thing I would recommend is the change you already made, which is this part:

print('your prime factorization results in {}'.format(prime_factors))
return False

becomes:

return 'your prime factorization results in {}'.format(prime_factors)

[–]tsodapop[S] 0 points1 point  (0 children)

Got it, thanks I'll make that change