← Quiz: Tuples and Sets: all 15 questions
Quiz: Tuples and Sets · Question 13 of 15
What does this print? (code)
What does this print?
point = (3, 4)
x, y = point
print(x * y)
- A.(3, 4)
- B.12
- C.7
- D.An error
Answer & explanation
Correct answer: 12
Tuple unpacking puts 3 in x and 4 in y.
Can you get the rest right without peeking?
Take the timed Quiz: Tuples and Sets quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →