>>> ["s" + str(i) for i in xrange(1,11)] ['s1', 's2', 's3', 's4', 's5', 's6', 's7', 's8', 's9', 's10']
EDIT: range works in both Python 2 and Python 3, but in Python 2 xrange works a little more efficiently (this generator is not a list). Thansk @ytu
source share