0 of 5 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 5 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
You have the potential to do better! 🙂
If you found a concept confusing on this page then please leave a comment below asking for clarity.
Try re-reading the tutorial on this page before you retake this quiz!
Good work on clearing this quiz!
Outstanding work! You have mastered this lesson. Onward to the next one!
In unpacking with single asterisk (*) we extract a tuple back to multiple _____________.
In unpacking with double asterisk (**) we extract a dictionary back to multiple _____________.
While unpacking a tuple into a number of variables, the number of arguments of the function should match.
In other words, if your function is :
calc(x , y)
and you unpack calc(*(tuple containing args)), then tuple containing args should provide exactly 2 values. No more, no less.
Which of these is true regarding packing / unpacking in Python?
We can use * to unpack a tuple (or even a list) so that all elements of it can be passed as different parameters.