Python | Convert case of elements in a list of strings

[ad_1] Given a list of strings, write a Python program to convert all string from lowercase/uppercase to uppercase/lowercase. Input : [‘GeEk’, ‘FOR’, ‘gEEKS’] Output: [‘geeks’, ‘for’, ‘geeks’] Input : [‘fun’, ‘Foo’, ‘BaR’] Output: [‘FUN’, ‘FOO’, ‘BAR’]  Method #1 : Convert Uppercase to Lowercase using map function    out = map(lambda x:x.lower(), [‘GeEk’, ‘FOR’, ‘gEEKS’]) … Read more