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

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

1 Expert Approved Answer
Step: 1 Unlock

def betweeneword firsteindex wordfinde Find the index of the first e secondeindex ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!