1

I'm getting crazy syntax errors in my terminal. For example:

end_result = ASCII_to_alpha_list(coded_list)
return ''.join(end_result)

Returns

End_result = ASCII_to_alpha_list(coded_list)
         ^
SyntaxError: invalid syntax
>>> 

What's weirding me out especially is that it doesn't matter what I put down - it returns the same error.

print 'Hi'

returns

print "Hi"
    ^
SyntaxError: invalid syntax
>>> 

Beginner coder here. Thanks for any help!

hanleyhansen
  • 6,304
  • 8
  • 37
  • 73
Eli Dinkelspiel
  • 769
  • 1
  • 6
  • 15

1 Answers1

3

You almost certainly have an error on the line before, probably a missing close parenthesis.

Daniel Roseman
  • 588,541
  • 66
  • 880
  • 895