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']
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']
how to make a list copy in python with lowercase check
current_users_lower = []
for user in current_users:
current_users_lower.append(user.lower())
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 :-)")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us