• + 0 comments

    b=sorted(list(set(scorelist)))[1]

    you dont need to convert set into list for sorting. Sorted function works on set as well and always return list irrespective of the type of iterable arugument passed