Question: Write a python program Write a function, repeat_letters_in(word), which takes a word made entirely of letters, & which returns a word with the first letter
Write a function, repeat_letters_in(word), which takes a word made entirely of letters, & which returns a word with the first letter of word once, the second letter of word repeated twice, , the nth letter of word repeated n times. Uses repeat_L(Letter, n) as a helper function. sample run: Words = ['a', 'at', 'aim', 'back') for word in words: print (word, repeat_letters_in (word)) a a at att aim aiimmm back baaccckkkk
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
