If you want to read a line from the stdin. Use this:
raw_input()
#or
sys.stdin.readline()
If the value is a integer, float or something else, you should cast the input to the type that you want.
a = int(raw_input())
b = float(raw_input())
if the line have some integers splitted by space such as this:
12 25 37
Then you can do this:
(a, b, c) = map(int, raw_input().split())
Recommended Posts