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