Hello, I would like to remove duplicated items from below list. Please help
To get your output on the right from the input on the left, flatten the output and make a set from the list…