← Quiz: itertools and functools: all 10 questions
Quiz: itertools and functools · Question 8 of 10
What does partial(int, base=2)("110") return?
What does partial(int, base=2)("110") return?
- A.110
- B."6"
- C.6
- D.An error
Answer & explanation
Correct answer: 6
The base is pre-filled, so "110" is read as binary: 6.
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 →