Question: please solve and provide code in python this is my code but apparently its wrong Question Goal: Learn to combine different list methods. Assignment: Given
please solve and provide code in python
this is my code but apparently its wrong
Question
Goal: Learn to combine different list methods.
Assignment: Given the lists list and list create a new sorted list consisting of all the elements of ist that do not appear in list Make sure that duplicate items only appear once. Assign this new list to difflist. Make sure to use the sort function.
def finddifferencelist list:
difflist
for item in list:
if item not in list and item not in difflist:
difflist.appenditem
difflist.sort
return difflist
Feedback Execution
More information
No output.
Feedback:
varnothing Expected variable 'difflist' to exist
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
