Answers for "Python REPL loop"

0

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()
Posted by: Guest on December-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language