Hello there, I was trying to run this code in a python shell on my computer but it says:
D:\Programming\Python>cc.py File "D:\Programming\Python\cc.py", line 5 print spam() ^ SyntaxError: invalid syntax
Here is the code I tried:
def spam(): eggs = 12 return eggs print spam()
Thanks in advance!