Benjamin Rutt wrote:
> There has been a problem that has been bugging me for a while for
> reading input from standard in. Consider the following simple program:
>
> #!/usr/bin/env python
> import sys
> print 'enter something: ',
> answer = sys.stdin.readline().strip()
> print
There has been a problem that has been bugging me for a while for
reading input from standard in. Consider the following simple program:
#!/usr/bin/env python
import sys
print 'enter something: ',
answer = sys.stdin.readline().strip()
print 'you answered {%s}' % (answer)
When