Uppercase Conversion for Three Lists

  • Share this:

Code introduction


Define a function that takes three lists as parameters and converts all elements in each list to uppercase.


Technology Stack : List (list), String (str), Case conversion (upper())

Code Type : List operation

Code Difficulty : Intermediate


                
                    
def aaaa(arg1, arg2, arg3):
    """
    将一个列表中所有元素的大小写转换为大写。

    :param arg1: 要转换的列表
    :param arg2: 要转换的列表
    :param arg3: 要转换的列表
    :return: 包含三个列表中所有元素大写的列表
    """
    return [list(arg1).upper(), list(arg2).upper(), list(arg3).upper()]