Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Easy Unpack solution in Clear category for Easy Unpack by Antoni_Wojcik
def easy_unpack(elements: tuple) -> tuple:
a = elements[0]
b = elements[2]
c = elements[-2]
return (a,b,c)
print("Example:")
print(easy_unpack((1, 2, 3, 4, 5, 6, 7, 9)))
assert easy_unpack((1, 2, 3, 4, 5, 6, 7, 9)) == (1, 3, 7)
assert easy_unpack((1, 1, 1, 1)) == (1, 1, 1)
assert easy_unpack((6, 3, 7)) == (6, 7, 3)
print("The mission is done! Click 'Check Solution' to earn rewards!")
Nov. 22, 2022
Comments: