← Quiz: Refactoring with AI: all 10 questions
Quiz: Refactoring with AI · Question 3 of 10
What does this print? (code)
What does this print?
from itertools import product
cases = list(product([8.0, 9.0], [False, True], [0, 5, 10]))
print(len(cases))
- A.7
- B.6
- C.12
- D.3
Answer & explanation
Correct answer: 12
2 × 2 × 3 = 12 combinations.
Can you get the rest right without peeking?
Take the timed Quiz: Refactoring with AI quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →