Mar-11-2020, 03:55 PM
(Mar-06-2020, 03:20 PM)stullis Wrote: To sort by an attribute, you can use the sorted() built-in function.
Thank you. I was able to code the following to accomplish my task:
self.cards_in_hand = sorted(self.cards_in_hand, key=lambda x: x.value, reverse=True)Thanks again,
Sean