반응형

취미생활/CheckIO 21

[checkIO]Element 02.Easy Unpack

our mission here is to create a function that gets a tuple and returns a tuple with 3 elements - the first, third and second to the last for the given array. Input: A tuple, at least 3 elements long. Output: A tuple. Example: easy_unpack((1, 2, 3, 4, 5, 6, 7, 9)) == (1, 3, 7) easy_unpack((1, 1, 1, 1)) == (1, 1, 1) easy_unpack((6, 3, 7)) == (6, 7, 3) * 튜플에서 첫번째, 세번째 그리고 뒤에서 두번째 값을 output - 풀이 def..

반응형