# for really long strings, it is typically more efficient to # append onto a list and then join at the end on empty string word = input('Enter a word: ') temp = [] for c in word: temp.append(2*c) print(''.join(temp))