← Quiz: AI Coding Risks: all 10 questions
Quiz: AI Coding Risks · Question 9 of 10
What does this print? (code)
What does this print?
from difflib import get_close_matches
print(get_close_matches("pandsa", ["requests", "pandas", "numpy"], n=1, cutoff=0.8))
- A.[]
- B.['numpy']
- C.['pandas']
- D.pandas
Answer & explanation
Correct answer: ['pandas']
A near-miss name is flagged as a likely typo of a trusted package.
Can you get the rest right without peeking?
Take the timed Quiz: AI Coding Risks quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →