Create function that uses filter to return words from a list of words that starts with a
Fantastic news! We've Found the answer you've been seeking!
Question:
Create function that uses filter to return words from a list of words that starts with a given letter.
The function will have an input of a string, and output a list of integers. example:
find_words(['lettuce','beans','apple','cat','dog','boy','girl','chicago','type'],'b') ['beans', 'boy']
Hint: you can use a lambda function to use with filter!
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date: