Answer to Question #80247 in Python for Padhu

Question #80247
Consider the following dictionary.
marks = {"Quizzes":{"Mahesh":[3,5,7,8],"Suresh":[9,4,8,8],"Uma":[9,9,7,6]},"Exams":{"Mahesh":[37],"Uma":[36]}}
Which of the following statements does not generate an error?
marks["Exams"]["Suresh"].extend([44])
marks["Exams"]["Suresh"] = [44]
marks["Exams"]["Suresh"].append(44)
marks["Exams"]["Suresh"][0:] = [44]
1
Expert's answer
2018-08-29T04:48:28-0400
Answer: marks["Exams"]["Suresh"].extend([44])

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS