I have a function that executes the following (among other things):
userinput = stdin.readline() betAmount = int(userinput)
Is supposed to tak
stdin.read(1)
will not return when you press one character - it will wait for '\n'. The problem is that the second character is buffered in standard input, and the moment you call another input - it will return immediately because it gets its input from buffer.