Answers for "uppercase all elements in list python"

1

how to capitalize every item in a list python

list = ['1','2','3']
for i in range(len(list)):
  list[i] = list[i].upper()
Posted by: Guest on January-08-2022
0

change strings in a list to uppercase

>>> [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 February-16-2022

Code answers related to "uppercase all elements in list python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language