SyntaxFix
Write A Post
Hire A Developer
Questions
Try this ...
import sys buffer = [] while True: userinput = sys.stdin.readline().rstrip('\n') if userinput == 'quit': break else: buffer.append(userinput)