1 2
for i in range(1, 50): print("{}{}".format(i, i+1))
1 2 3 4
Traceback (most recent call last): Line 2, in <module> print("{}{}".format(i, i+1)) AttributeError: 'str' object has no attribute 'format'