Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for Easy Unpack by DerryK
def easy_unpack(elements: tuple) -> tuple:
"""
returns a tuple with 3 elements - first, third and second to the last
"""
return (elements[0], elements[2], elements[-2])
March 17, 2020