input_list = ['soap','sharp','shy','silent','ship','summer','sheep']
Extract a list of names that start with an s
and end with a p
(both 's' and 'p' are lowercase) in input_list
using filter
function.
Output should be:
['soap', 'sharp', 'ship', 'sheep']