Function to Determine String Length

  • Share this:

Code introduction


This function takes a string argument and returns the length of the string.


Technology Stack : Built-in Python functions

Code Type : Python Function

Code Difficulty :


                
                    
def random_word_length(word):
    """
    This function returns the length of a given word.
    """
    return len(word)