🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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))
  1. A.7
  2. B.6
  3. C.12
  4. 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 →