How to print without spaces?

Wolfgang Rohdewald wolfgang at rohdewald.de
Fri Sep 18 16:31:30 EDT 2009


On Friday 18 September 2009, koranthala wrote:
> What if I want to print 1 to 100 in a loop without spaces in
>  between? I think that is the OPs question.

arr = ['a', 'b', 'c', 'andsoon']
print ''.join(arr)

-- 
Wolfgang



More information about the Python-list mailing list