>>> import timeit>>> min(timeit.repeat(lambda: ''.join(str(i) for i in range(10) if i)))3.839168446022086>>> min(timeit.repeat(lambda: ''.join([str(i) for i in range(10) if i])))3.339879313018173
>>> '-'.join(range(48, 55))Traceback (most recent call last):File "<stdin>", line 1, in <module>TypeError: sequence item 0: expected str instance, int found