String to Uppercase Conversion Function

  • Share this:

Code introduction


This function takes a string argument and converts it to uppercase, then returns the result.


Technology Stack : str.upper()

Code Type : String Handling Function

Code Difficulty :


                
                    
def arialize(string):
    """
    将字符串中的每个字符转换为大写字母。
    """
    return string.upper()                
              
Tags: