Input without line break, is it possible?

geezle86 at gmail.com geezle86 at gmail.com
Wed Dec 4 10:38:09 EST 2013


The source code:

for i in range(8):
   n = input()

When we run it, consider the numbers below is the user input,

1
2
3
4
5
6
(and so forth)

my question, can i make it in just a single line like,

1 2 3 4 5 6 (and so forth)

Can I?



More information about the Python-list mailing list