Question: Write a program that reads a string then generates and prints a new string that has same characters of the original string but with

Write a program that reads a string then generates and prints a new string that has same characters of the  

Write a program that reads a string then generates and prints a new string that has same characters of the original string but with alternating capital and small letters. For example, check the sample RUN below. 3.3.1 Sample run Enter a statement: Easy Summer you mean: Easy SUMMER Slide Type

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python def alternateLetterstext declare a string to store the new string newStr loop through the string for i in rangelentext check the current character if i 2 0 if its even convert it to upper case ... 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!