Just started Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Just started Python

Hello I just started learning python and decided to test my skills. Unfortunately my program doesn't seem to be working. It's meant to find all the primes. Can anyone help me please? https://code.sololearn.com/c9G2NQgl4KiM/?ref=app Edit: Thanks Russ, that helped a lot!

30th Jun 2020, 9:29 PM
JOHN PETERSON
1 Answer
+ 2
Line 10: false -> False At the end: for num in getPrimes(): print(num) The problem then is that you don't get any output because you have created an infinite loop (which would work normally but not here on SoloLearn). Great code though 👍
30th Jun 2020, 9:38 PM
Russ
Russ - avatar