In a given word you need to check if one symbol goes right after another. goes_after('panorama', 'a', 'n') == True but goes_after("almaz","m","a") == False