I want to print out all of the items in a list with the following code,
mylist = 
x = 3
while (x < n/2):
if ((n % x) == 0):
x = x + 2
for item in mylist:
I am getting a syntax error when I run this. It highlights "item" in the last line.
Any ideas where I've gone wrong?