What can be a dict key?
QuizEasy-MediumPython only
Which statements are true? Pick all that apply.
d[(1, 2)] = "ok"worksd[[1, 2]] = "ok"works{1: "int", 1.0: "float"}has one key- Assigning to an existing key adds a second entry
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.