Create two functions: is_prefix(word, prefix-) and is_suffix(word, -suffix).
is_prefix should return True if it begins with the prefix argument.is_suffix should return True if it ends with the suffix argument.Otherwise return False.
is_prefix("automation", "auto-") β True
is_suffix("arachnophobia", "-phobia") β True
is_prefix("retrospect", "sub-") β False
is_suffix("vocation", "-logy") β False
The prefix and suffix arguments have dashes - in them.