SyntaxFix
Write A Post
Hire A Developer
Questions
str.join would be appropriate in this case
str.join
>>> print ' '.join(str(x) for x in xrange(1,11)) 1 2 3 4 5 6 7 8 9 10