Nov-22-2020, 10:49 PM
@buran The way you break down the assignment is not at all how I read it which is why I think I'm not understanding/correctly reading the code in the instructions.
When I see this (the instructions):
def easy_unpack(elements: tuple) -> tuple:
returns a tuple with 3 elements - first, third and second to the last
I think:
# easy_unpack((1, 2, 3, 4, 5, 6, 7, 9)) == (1, 3, -2)
returns (2, 4, 7)
Which is apparently wrong. So as a complete beginner to anything/everything programming, is there a specific way that I'm supposed to read the code to properly understand the instructions? Your explanation of it and isolating the function and parameter made sense but not how my mind interpreted the instructions and this keeps happening.
When I see this (the instructions):
def easy_unpack(elements: tuple) -> tuple:
returns a tuple with 3 elements - first, third and second to the last
I think:
# easy_unpack((1, 2, 3, 4, 5, 6, 7, 9)) == (1, 3, -2)
returns (2, 4, 7)
Which is apparently wrong. So as a complete beginner to anything/everything programming, is there a specific way that I'm supposed to read the code to properly understand the instructions? Your explanation of it and isolating the function and parameter made sense but not how my mind interpreted the instructions and this keeps happening.