I\'m trying to make a list of prime numbers.
primes = [] num=int for num in range (2,100): for x in range (2, num): if (num % x) == 0:
The logic in your if-else is incorrect.
If you get a "clean modulo" in your if block, what do you want to happen? Hint: not pass.
pass
Second, when do you want to append to your prime list?
Not being too specific here as we shouldn't be doing this H/W assignment for you. :)