Converting list into lowercase

Question:

enter image description here
I want to convert the list into lower case but my output converts the last index object into a list in lower case. where am i going wrong? must be a lame question but i am super new to coding.

Asked By: vikrammane8377

||

Answers:

Use list comprehensions.

    list = ['UPPER', 'UPPER', 'UPPER']
    list = [x.lower() for x in list]
    print(list)
    >>> ['upper', 'upper', 'upper']
Answered By: Someone Else
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.