Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:30, Machuco127
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
image
Computers and Technology, 24.06.2019 12:30, stephanieanaya7
Why does the pc send out a broadcast arp prior
Answers: 1
image
Computers and Technology, 25.06.2019 05:10, mathbrain58
Write a program that asks for 'name' from the user and then asks for a number and stores the two in a dictionary (called 'the_dict') as key-value pair. the program then asks if the user wants to enter more data (more data (y/n)? ) and depending on user choice, either asks for another name-number pair or exits and stores the dictionary key, values in a list of tuples and prints the list. note: ignore the case where the name is already in the dictionary. example: name: pranshu number: 517-244-2426 more data (y/n)? y name: rich number: 517-842-5425 more data (y/n)? y name: alireza number: 517-432-5224 more data (y/n)? n [('alireza', '517-432-5224'), ('pranshu', '517-244-2426'), ('rich', '517-842-5425')]
Answers: 3
image
Computers and Technology, 25.06.2019 06:50, gutierrezaandrea56
The federal sentencing guidelines for organizations set the tone for organizational ethics compliance programs by question 1 options: a) codifying into law incentives for organizations to take action such as developing ethical compliance programs to prevent misconduct. b) forcing all organizations to develop mandatory reporting systems and ethics programs. c) eliminating most of the federal legislation that created inefficient and time-consuming activities for businesses. d) providing detailed guidelines for how to set up organizational ethics programs to guard against unethical conduct. e) providing a thorough examination of company codes of ethics to determine whether they are sufficient.
Answers: 1
Do you know the correct answer?
Consider the following dictionary Marks and answer the questions from (i) to (iv). Marks={“Lina”:80...

Questions in other subjects:

Konu
History, 26.10.2019 10:43
Konu
Mathematics, 26.10.2019 10:43