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