Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q3 Question 3 1 Point What does the following code print to the terminal? d = {a : 1, b : 2, C : 3}
Q3 Question 3 1 Point What does the following code print to the terminal? d = {"a" : 1, "b" : 2, "C" : 3} for k, v in d: d[k] += 1 print(d["c"]) Enter your answer here Save Answer Q4 Question 4 2 Points What does the dictionary dctn contain after the following lines of code are executed? dctn = {} dctn [1980] = "a" dctn [1990] = "b" dctn [2000] = "C" dctn[1990] = "d" O {} O {1980:"a", 1990: "b", 2000:"c", 1990:"d"} O {1980:"a", 1990: "b", 2000:"c"} O {1980:"a", 1990:"", 2000:"c"} Save
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started