I am very new to python and I have done this challenge on codecademy.
def spam():
eggs = 12
return eggs
print spam()
This works on codecademy but if I put it in IDLE and run it I get an error saying invalid syntax. So I am a bit contused about what is happening. Can any one help.