# 8. (10 points) Design a Python3 function to compare every prefix of a string X to every element of string Y, if there is a match, place it in a python set, sort and reversely sort the set, and return the sorted and reversely sorted sets. Good luck.

## This problem has been solved!

Do you need an answer to a question different from the above? Ask your question!

**Related Book For**

## Artificial Intelligence A Modern Approach

3rd edition

Authors: Stuart Russell, Peter Norvig

ISBN: 978-0136042594