Answers for "new line eval python"

12

python new line

# n Makes A new Line.
print("Hello n World!")
#Out Put
#Hello
# World!
#Still Counts The Space!
Posted by: Guest on March-27-2020
0

new line eval python

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

>>>
Posted by: Guest on January-30-2022

Python Answers by Framework

Browse Popular Code Answers by Language