N
notnorwegian
' '.join([`x x` for x in range(1, 6)])
anyone can tell me what im doing wrong?
anyone can tell me what im doing wrong?
' '.join([`x x` for x in range(1, 6)])
anyone can tell me what im doing wrong?
John McMonagle said:' '.join([`x x` for x in range(1, 6)])
anyone can tell me what im doing wrong?
' '.join(['%s %s' % (str(x), str(x)) for x in range(1,6)])
or
' '.join([str(x)+' '+str(x) for x in range(1,6)])
outputs....
'1 1 2 2 3 3 4 4 5 5'
Is that what you were after ?
' '.join([`x x` for x in range(1, 6)])
anyone can tell me what im doing wrong?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.