On 04/12/2013 15:38, geezl...@gmail.com wrote:
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?


Yes you can get them on a single line, see the response from Tim Chase. But just to be crystal clear, are you aware that you're getting string representations of numbers, and not the numbers themselves?

--
My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to