I've trying to make it work without if statement with python in which it does work most of time until it reaches a word like 'celebration'. I'm not understanding what's causing this to happen.
common_suffix = ['ly', 'ion', 'ed', 'able']
def ends_in_common_suffix(word):
for suffix in common_suffix:
last_word = word[-len(suffix)]
return last_word < suffix