How it works a nonetype function? : In order to create an updatescore function for a game I am developing a function that returns nonetype. I was serching some information about this kind of functions in Python 3 and as far as I know what I supossed to do is try to create it without printing because is a nonetype function, but How it really means that returns a nonetype?. I tried to code this function by using other function called word_score which it seems to work properly but I got stuck in the update_score function.

Any help will be useful

Thanks in advance

previos Function:

def word_score(word):
    """ (str) -> int

    Return the point value the word earns.

    Word length: < 3: 0 points
                 3-6: 1 point per character for all characters in word
                 7-9: 2 points per character for all characters in word
                 10+: 3 points per character for all characters in word

    >>> word_score('DRUDGERY')
    16
    >>> word_score('PEN')
    3
    >>> word_score('GRANDMOTHER')
    33
    """
    if len(word) < 3:
        return 0
    elif len(word) in range(3,7):
        return len(word)
    elif len(word) in range(7, 10):
        return len(word)* 2
    elif len(word) >= 10:
        return len(word) * 3
    
        

    return word_score


current function update_score:

def update_score(player_info, word):
    """ ([str, int] list, str) -> NoneType

    player_info is a list with the player's name and score. Update player_info
    by adding the point value word earns to the player's score.

    >>> update_score(['Jonathan', 4], 'ANT')
    """

    return update_score(['player_info', word_score], 'word')

Do you see something strange in this one?



    

