Newbie to Python...trying to take sentence = "Anyone who has never made a mistake has never tried" and:
- Convert sentence to list
- Use list comprehension to create a new list containing word beginning with letters 'A, H and M'.
Able to convert sentence to list using string.split()
string = "Anyone who has never made a mistake has never tried anything new"
string.split()
['Anyone', 'who', 'has', 'never', 'made', 'a', 'mistake', 'has', 'never', 'tried', 'anything', 'new']
Need help with the list comprehension. No clue where to start.