api/utils/capitalize.py
def capitalize(data: str):
    """Function for capitalizing the input string."""
    # zero!!!111! why not just use str.capitalize!!!!
    # something like "hard demon".capitalize() returns "Hard demon", while this function returns "Hard Demon"

    resp: str = ''

    for i in data.split(' '):
        resp += i[0].upper() + i[1:] + ' '
    
    return resp[:-1]
Function for capitalizing the input string.
Function for capitalizing the input string.
Function for capitalizing the input string .
def capitalize(data: str):
    resp: str = ''
    for i in data.split(' '):
        resp += i[0].upper() + i[1:] + ' '
    return resp[:-1]
def capitalize ( data : str ) : resp : str = '' for i in data . split ( ' ' ) : resp += i [ 0 ] . upper ( ) + i [ 1 : ] + ' ' return resp [ : - 1 ]
Function for capitalizing the input string.
Function for capitalizing the input string .
"""Function for capitalizing the input string.""" # zero!!!111! why not just use str.capitalize!!!!
 # something like "hard demon".capitalize() returns "Hard demon", while this function returns "Hard Demon"

data
str