0

I'm new to programming and I'm trying to understand why eval fails in this particular case. Any help would be much appreciated.

eval('st=int(st)')

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    eval('st=int(st)')
  File "<string>", line 1
    st=int(st)
      ^
SyntaxError: invalid syntax```

0 Answers0