Python 3 for comparison:
while True:
print(eval(input(">>> "))) while True:
print(eval(input(">>> "))) ovov@ovov ~> cat repl.py
while True:
print(eval(input(">>> ")))
ovov@ovov ~> python3 repl.py
>>> x = 1
Traceback (most recent call last):
File "repl.py", line 2, in <module>
print(eval(input(">>> ")))
File "<string>", line 1
x = 1
^
SyntaxError: invalid syntaxPython's `eval` also isn't sufficient here. For example, you cannot enter that loop you wrote at the prompt it provides when you run it, even if you write it on one line. You could use `exec`, but then everything would print as `None`.
There's the larger point about forms vs strings and printing readably and such, but this doesn't even provide the same basic functionality that a Python programmer would expect from a REPL.