def word_lengths(phrase):
    
    pass

word_lengths('How long are the words in this phrase')

"""
Explanation: Advanced Functions Test
For this test, you should use the built-in functions to be able to write the requested functions in one line.
Problem 1
Use map to create a function which finds the length of each word in the phrase
(broken by spaces) and return the values in a list.
The function will have an input of a string, and output a list of integers.
End of explanation
"""


def digits_to_num(digits):
    
    pass

digits_to_num([3,4,3,2,1])

"""
Explanation: Problem 2
Use reduce to take a list of digits and return the number that they
correspond to. Do not convert the integers to strings!
End of explanation
"""


def filter_words(word_list, letter):
    
    pass

l = ['hello','are','cat','dog','ham','hi','go','to','heart']
filter_words(l,'h')

"""
Explanation: Problem 3
Use filter to return the words from a list of words which start with a target letter.
End of explanation
"""


def concatenate(L1, L2, connector):
    
    pass

concatenate(['A','B'],['a','b'],'-')

"""
Explanation: Problem 4
Use zip and list comprehension to return a list of the same length where each value is the two strings from
L1 and L2 concatenated together with connector between them. Look at the example output below:
End of explanation
"""


def d_list(L):
    
    pass

d_list(['a','b','c'])

"""
Explanation: Problem 5
Use enumerate and other skills to return a dictionary which has the values of the list as keys and the index as the value. You may assume that a value will only appear once in the given list.
End of explanation
"""


def count_match_index(L):
   
    pass

count_match_index([0,2,2,1,5,5,6,10])

"""
Explanation: Problem 6
Use enumerate and other skills from above to return the count of the number of items in the list whose value equals its index.
End of explanation
"""


