def freq(wordlist): 
    """
    Function to calculate word frequency from a list of words.
    It returns the list of words together with frequencies.
    """
    # Create empty 'result list'
    result = []
    # break the string into list of words           
    new_string = [] 
    
    # loop over words present in wordlist
    for word in wordlist:              
        # checking for duplicates
        if word not in new_string: 
            # insert value in new_string
            new_string.append(word)  
              
    for i in range(0, len(new_string)): 
        # Append the list of words and frequencies to results
        result.append((new_string[i],wordlist.count(new_string[i])))

    return(result)