A) Collection
B) Unpacking
C) Packing
D) None of the above
Correct Answer: B
Solution :
[b] Creating individual values from a tuple's elements is called Unpacking. For example: if a tuple contains 4 values then you will assign these values to 4 different variables like: |
T=(4,5,6,8) |
a,b,c,d = T |
the above 2 statements represent the concept of unpacking, and now the value of a=4, b=5, c=6 and d=8. |
You need to login to perform this action.
You will be redirected in
3 sec