Read more numbers in a line in Python
Posted
by VaioIsBorn
on Stack Overflow
See other posts from Stack Overflow
or by VaioIsBorn
Published on 2010-03-21T21:23:01Z
Indexed on
2010/03/21
21:31 UTC
Read the original article
Hit count: 290
Let say i want to read the integers a, b and c from stdin (in one line, do not need to press return after each number). In c++, i would just do:
cin >> a >>b >> c;
How to do this in Python ?
© Stack Overflow or respective owner