Question: write a python program Write a function, repeat_letters_in_each_word_in(sentence), which takes a Sentence of words consisting entirely of letter separated by a single space and ending
Write a function, repeat_letters_in_each_word_in(sentence), which takes a Sentence of words consisting entirely of letter separated by a single space and ending with a period, and returns a sentence of words separated by a single space and ending with a period, where each word has its letters repeated. Uses repeat_letters_in(word) as a helper function. Sample run: Sentence = 'Brevity is the soul of wit.' print('Original sentence: ', Sentence) print('Sentence with repeat letters in each word: ') print(repeat_letters_in_each_word_in(sentence)) Original sentence: Brevity is the soul of wit. Sentence with repeat letters in each word: Brreeevvvviiiiittttttyyyyyyy iss thheee soouuullll off wiittt. > > >
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
