string = 'string' for i in range(11): string += 'i' print string # It will print string 012345678910.