I have a function that executes the following (among other things):
userinput = stdin.readline() betAmount = int(userinput)
Is supposed to tak
Try this ...
import sys buffer = [] while True: userinput = sys.stdin.readline().rstrip('\n') if userinput == 'quit': break else: buffer.append(userinput)