2

I get the following error. Is there a way to eval import?

>>> eval('import os')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 1
    import os
         ^
SyntaxError: invalid syntax
user1424739
  • 11,937
  • 17
  • 63
  • 152

0 Answers0