# to be addded
# to be added
Although there is nothing syntactically wrong with this code, it is hard to read and can be simplified to a set comprehension. Also it is faster since you don’t need to create another transient list.