You were very close. He split
does not strip
:
a, b, c = (int(x) for x in raw_input().split())
It takes exactly 3 integers, nothing more. If you want to take an arbitrary amount into a tuple, try this instead:
tup = tuple(int(x) for x in raw_input().split())
source
share