All challenges
Multiple ChoiceIntermediate 30s

Dict fromkeys

Choose the best answer for: dict.fromkeys()
Options
  1. 1Returns only the keys of a mapping as a list
  2. 2Is a method defined on the list type
  3. 3Creates dict from values with a default key
  4. 4Creates dict from keys with default value

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle