Why does my compiler say invalid syntax then highlight...?

Wubbulous at gmail.com Wubbulous at gmail.com
Tue Mar 11 00:57:35 EDT 2008


I may have your problem:

                 if prime < 0:
                     primes.append(x)
                 else:
                     print x, "is not prime. " # highlights the final
"

you have to separate each output with a comma, so try adding one after
x.



More information about the Python-list mailing list