← Quiz: itertools and functools: all 10 questions
Quiz: itertools and functools · Question 1 of 10
How many items does combinations("ABCD", 2) produce?
How many items does combinations("ABCD", 2) produce?
- A.4
- B.6
- C.12
- D.16
Answer & explanation
Correct answer: 6
4C2 = 4 × 3 / 2 = 6 unordered pairs.
Can you get the rest right without peeking?
Take the timed Quiz: itertools and functools quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →