# Write a Python program to Sort Tuples by their Maximum element # Python3 code to demonstrate working of # Sort Tuples by Maximum element# Using max() + sort()  # helper functiondef get_max(sub):    return max(sub)  # initializing listtest_list = [(4, 5, 5, 7), (1, 3, 7, 4), (19, 4, 5, 3), (1, 2)]  # printing original listprint("The original list is : " + str(test_list))  # sort() is used to get sorted result# reverse for sorting by max - first element's tuplestest_list.sort(key = get_max, reverse = True)  # printing result print("Sorted Tuples : " + str(test_list))