Menu

[Solved]-Question 1 1 Pts First Element List Named Data Obtained O Dataindex 1 Data O O Dataindex O Q37224075

Question 1 1 pts The first element of a list named data is obtained by O data.index(1) data[O] O data.index(O) data(O) data

Question 1 1 pts The first element of a list named ‘data’ is obtained by O data.index(1) data[O] O data.index(O) data(O) data 1) datal1] Question 2 1 pts Suppose ‘capitals’ is a dictionary associating countries with their capital cities. If we found that Egypt was missing and wanted to add it to the dictionary, the way to do that would be O capitals’Egypt]- ‘Cairo capitals(nations.index(Egypt)]-Cairo capitals(‘Egypt) “Cairo capitals.append(Egypt’Cairo capitals.insert’EgyptCairo) Show transcribed image text Question 1 1 pts The first element of a list named ‘data’ is obtained by O data.index(1) data[O] O data.index(O) data(O) data 1) datal1] Question 2 1 pts Suppose ‘capitals’ is a dictionary associating countries with their capital cities. If we found that Egypt was missing and wanted to add it to the dictionary, the way to do that would be O capitals’Egypt]- ‘Cairo capitals(nations.index(Egypt)]-Cairo capitals(‘Egypt) “Cairo capitals.append(Egypt’Cairo capitals.insert’EgyptCairo)

Expert Answer


Answer to Question 1 1 pts The first element of a list named ‘data’ is obtained by O data.index(1) data[O] O data.index(O) data(O)… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *