Codewars exercise:
Solution:
def feast(beast, dish): return beast.startswith(dish[0]) & beast.endswith(dish[-1])