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 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
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
Get step-by-step solutions from verified subject matter experts
