how to change uppercase to lowercase and lowercase to uppercase in python code example
Example 1: convert an array to uppercase or lowercase js
var fruits = ["Banana", "Orange", "Apple", "Mango"];
undefined
string = fruits.join(' ').toUpperCase();
// Output"BANANA ORANGE APPLE MANGO"
Example 2: how to convert uppercase to lowercase and vice versa in python
def swap_string():
s=input()
swapped_string=""
swapped_string+=s.swapcase()
return swapped_string