The instructions include this ...
Do not modify the list you take as input! Instead,
return a new list.
list you take as input is
x, and you are modifying it with the
- Create a new empty
list prior to the loop.
- Within the loop, check each item in
x, and if it is not
in the new
append it to that new
- After the loop,
return the new
If any problem occurs as you refine your code, you can post it again. It would be best to format all code that you post, so we can see details such as indentation.