Question: Q5 Write a Program: Slicing and Concatenation 10 Points Write a function between e(word) that takes in a string representing a single lowercase English

Q5 Write a Program: Slicing and Concatenation 10 Points Write a function between e(word) that takes in a string representing a single lowercase English word containing exactly two 'e's, and returns the same word but with all letters that come between the first 'e's capitalized (NOT including the 'e's themselves). Hint: The following techniques/string methods are likely to be useful: String slicing String concatenation .find .upper For exmaple: >>> between_e('bees') 'bees' >>> between_e('lever') 'lever' >>> between_e('estimate') 'ESTIMATE' Write your function in the box below, or upload a file.
Step by Step Solution
3.42 Rating (152 Votes )
There are 3 Steps involved in it
def betweeneword firsteindex wordfinde Find the index of the first e secondeindex ... View full answer
Get step-by-step solutions from verified subject matter experts
