Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

new line eval python

>>> eval('"hello 
"')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 1
    "hello
          ^
SyntaxError: EOL while scanning string literal
>>> eval('"hello 
"')
'hello 
'
>>> print(eval('"hello 
"'))
hello

>>>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #line #eval #python
ADD COMMENT
Topic
Name
6+9 =