Computer Science, asked by sadab011gmailcom, 28 days ago

Have the function StringChallenge(str) take the str parameter and swap the case of each character. Then, if a letter is between two numbers (without separation), switch the places of the two numbers. For example: if str is "6Hello4 -8World, 7 yes3" the output should be 4hELLO6 -8wORLD, 7 YES3.
Examples
Input: "Hello -5LOL6"
Output: hELLO -6lol5
Input: "2S 6 du5d4e"
Output: 2s 6 DU4D5E

Answers

Answered by aryayadv167
2

Answer:

ello4 -8World, 7 yes3" the output should be 4hELLO6 -8wORLD, 7 YES3.

Explanation:

Similar questions