Test Setup Failed
Push — master ( c52c22...c7921f )
by Ken M.
46s
created

easy_unpack()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
def easy_unpack(elements: tuple) -> tuple:
2
    return elements[0], elements[2], elements[-2]
3
4
5
if __name__ == '__main__':
6
    # These "asserts" using only for self-checking
7
    # and not necessary for auto-testing
8
    assert easy_unpack((1, 2, 3, 4, 5, 6, 7, 9)) == (1, 3, 7)
9
    assert easy_unpack((1, 1, 1, 1)) == (1, 1, 1)
10
    assert easy_unpack((6, 3, 7)) == (6, 7, 3)
11
    print('Done! Go Check!')
12