Python REPL loop
# Simple Python REPL loop
# as in Lisp and Scheme
while True:
s = input('--> ').strip()
print("echo input: ", s)
if (s == "quit"):
quit()
Are there any code examples left?
New code examples in category Python