Answers for "convert list to uppercase python"

4

how to lowercase list in python

[x.lower() for x in ["A","B","C"]]
['a', 'b', 'c']

>>> [x.upper() for x in ["a","b","c"]]
['A', 'B', 'C']

>>> map(lambda x:x.lower(),["A","B","C"])
['a', 'b', 'c']
>>> map(lambda x:x.upper(),["a","b","c"])
['A', 'B', 'C']
Posted by: Guest on May-06-2020
1

convert list elements to uppercase python

>>> [x.lower() for x in ["A", "B", "C"]]
['a', 'b', 'c']
>>> [x.upper() for x in ["a", "b", "c"]]
['A', 'B', 'C']
Posted by: Guest on August-13-2021
0

how to convert list to all uppercase

#Capitalise list

c = ['Kenya','Uganda', 'Tanzania','Ethopia','Azerbaijan']

converted_list = [x.upper() for x in c]print(converted_list)print("Remember to clap :-)")
Posted by: Guest on May-15-2020

Code answers related to "convert list to uppercase python"

Python Answers by Framework

Browse Popular Code Answers by Language