subject

Consider the following dictionary Marks and answer the questions from (i) to (iv). Marks={“Lina”:80, “Fatima”:75, “Priya”:82}
(i) Ms. Shoba wants to change the name Lina to Linda. Is it allowed in python?
If no, state the reason. 1
(ii) Help her to select the command to get all the marks from the dictionary. 1
a) Marks. value()
b) Marks. values()
c) Marks. items()
(iii) She needs to change the mark of Priya to 87. Help her choose the command
to do so. 1
a) Marks. update[Priya:87]
b) Marks[Priya]=87
c) Marks[“Priya”]=87
(iv) She wanted to add a new student “Nithya” with marks 66 . she used the following command and got error. 1
Marks. append[“Nithya”]=66
Help her to write the correct command.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
Distinguish between a skill resume and a chronological resume and explain when it is best to use each format
Answers: 1
You know the right answer?
Consider the following dictionary Marks and answer the questions from (i) to (iv). Marks={“Lina”:80...
Questions
question
Mathematics, 06.10.2019 02:00
Questions on the website: 13722362