Question: Create a program called alternative.py that reads in a string and makes each alternate character an uppercase character and each other alternate character a lowercase

Create a program called alternative.py that reads in a string and makes each alternate character an uppercase character and each other alternate character a lowercase character (e.g, the string Hello World would become HeLlO WoRlD)

Now, try starting with the same string but making each alternative word lower and upper case (e.g. the string I am learning to code would become i AM learning TO code). Using the split and join functions will help you here.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!