Could someone please tell me what I may be doing wrong. I keep getting this message when I run my python code:
import random foo = [\'a\', \'b\', \'c\', \
I also got this error by naming a method random like this:
random
import random def random(): foo = ['a', 'b', 'c', 'd', 'e'] random_item = random.choice(foo) print random_item random()
It's not your case (naming a file random.py) but for others that search about this error and may make this mistake.
random.py