def check_whether_is_STRAIGHT_FLUSH(self, list1): return_value = [] if Help.check_whether_is_the_same_color(self,list1) == False \ or Help.check_is_straight(self,list1) == False: return_value.append(False) return return_value else: list_sorted = sorted(list1,key = lambda x:(x[1],x[0].lower())) return_value.append(True) return_value.append(list_sorted[-1][-1]) return return_value