I defined a class with 3 objects inside of it:
class abc():
__slots___ = ('1','2',3')
From here, I made a list containing around a thousand elements:
lst = [[abc,dfg,9292],[ksdj,lkjsd,9239],...]
The third element inside each element is always a number. I want to assign the object called 3 in my class to that third element so that I can sort the list.
To clarify some misconceptions object 3 is actually quantity. Therefore, the third element in each element is considered a quantity.