(Nov-21-2020, 10:19 PM)chiron Wrote: I read it as them wanting us to provide a full index of integersI really don't understand what you mean by this.
the assignment is clear - they provide you with signature of a function
easy_unpack
that has parameter elements
which is a tuple. It returns new tuple with just the first, third and second to last element of the tuple you pass as argument when you call that function. You need to implement that function.For a more versatile function in may take second argument - tuple of indexes you want to get, in the order you want them. This way it will not have indexes it returns hard-coded. But this is not required for this assignment.
In my opinion check.io and similar are nice games/sites/riddles for practicing.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs