Question: Here is the original question: Create a file called alternative.py Write a program that reads in a string and makes each alternate character into an

Here is the original question:

Create a file called alternative.py Write a program that reads in a string and makes each alternate character into an upper case character and each other alternate character a lower case 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. Tip: Using the split() and join() functions will help you here.

I received the following feedback and need help with improving my code please:

Please note that for the second task, you are supposed to use the same string that you used for task 1 instead of asking the user for another user input. That is the only missing requirement in this program. So basically making each alternative word lower and upper case for the same input string from task one. Choosing good names for variables in coding is important. It makes the code easier to read and understand. Good names are clear and meaningful also help avoid mistakes and make it easier to improve or change the code later. While this is a small program, for larger programs you must do this, but you need to practice while on small programs. Please notice the "c" in line 9, "i" in line 29, "sw" in line 19, and "s" in line 37 these are not descriptive at all.

Please can someone help asap?

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!