I’ve tried numerous variations but can’t seem to pass the unit_test. My expected output is correct, except for the order of suggestions, and my code passes 8 out of 9 tests in the unit test. I believe I am following all of the instructions. I’ve tried numerous variations with reversed. I can’t seem to change the order of the suggestions as a set. But my probs are in the proper order.
Any help or advice is appreciated.
Hello @Glenn_DiCostanzo!
Here are some advices to look at your code:
- There are a lot of ways to implement this function. Take care with your ’ Short circuit’ to get all suggestions;
- Your probs are apparently ok. So, check if you get all your best words properly and return the most probable top n_suggested words;
- The expected output is a list of tuples.
Did I help you with these tips? If you’re still having trouble, DM me so we can actually get into your code to see what’s going on.
Best regards,
Wesley P.