Codewars note - 判定 字符串 首尾
Codewars exercise:

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

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