Hints: Flags/counters can be used to manage uppercase-lowercase. Sample Input 1: Python programming is very easy Sample Output 1: PyThOn ProgRaMmlnG iS VETY EASY Sample Input 2: love Python...


Write a python program that takes a string as an input from the user and then modifies the string in such a way that the string always starts with an uppercase letter and the case of each subsequent letter is the opposite of the previous letter (uppercase character followed by a lowercase character followed by an uppercase character and so on). Finally the modified string is printed to show the user.


Hints: Flags/counters can be used to manage uppercase-lowercase.<br>Sample Input 1:<br>Python programming is very easy<br>Sample Output 1:<br>PyThOn ProgRaMmlnG iS VETY EASY<br>Sample Input 2:<br>love<br>Python<br>Programming<br>Sample Output 2:<br>I IOVE<br>pYtHON<br>PROGTAMMING<br>Sample Input 3:<br>CSE110 Course<br>Sample Output 3<br>CSE110 COURSE<br>

Extracted text: Hints: Flags/counters can be used to manage uppercase-lowercase. Sample Input 1: Python programming is very easy Sample Output 1: PyThOn ProgRaMmlnG iS VETY EASY Sample Input 2: love Python Programming Sample Output 2: I IOVE pYtHON PROGTAMMING Sample Input 3: CSE110 Course Sample Output 3 CSE110 COURSE

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here