Python quiz · 32 questions

Dict comprehension

Read the code

What does this return?


{k: v * 2 for k, v in {"a": 1}.items()}
  • 1–3 answer
  • ← previous
Question 2 of 323%