I have a function that executes the following (among other things):
userinput = stdin.readline() betAmount = int(userinput)
Is supposed to tak
import sys userinput = sys.stdin.readline() betAmount = int(userinput) print betAmount
This works on my system. I checked int('23\n') would result in 23.