set() function removes duplicate from the list and also make the list unordered, whileas sorted() will sort the list by numerical order
Loading collection data...
Sets, like dictionaries, cannot contain duplicate values
set() function removes duplicate from the list and also make the list unordered, whileas sorted() will sort the list by numerical order