Question: Please answer the following questions using python language. Question 11 What will be the outcome of the following code? months = {'January':['Enero', Januar'], ' 'February':['Febrero',

Please answer the following questions using python language.
Please answer the following questions using python language. Question 11 What will
be the outcome of the following code? months = {'January':['Enero', Januar'], '
'February':['Febrero', 'Februar'], "March':['Marzo', 'Marz'], "April":['Abril', 'April'] } for k in months.keys: print(k)
O print all the keys O print all the items O print
all the values O print nothing Question 12 Write the exact outcome

Question 11 What will be the outcome of the following code? months = {'January':['Enero', Januar'], ' 'February':['Febrero', 'Februar'], "March':['Marzo', 'Marz'], "April":['Abril', 'April'] } for k in months.keys: print(k) O print all the keys O print all the items O print all the values O print nothing Question 12 Write the exact outcome of the following code: my_dict = {1:10, 2: 20, 3: 40} sum = 0 for k in my_dict: sum += k print (sum) Question 13 When writing to a file using this statement: a fp.writelines(outdata) What is true about "outdata"? It's the name of the file being written to o It's a variable holding the name of the file being written to o It's a string variable holding the characters to be written to the file pointed to by "fp" It's a list variable consisting of one or more strings to be written to the file pointed to by "fp" None of the above Question 14 What would be the value of the following expression: (11 - 4) // 3 O A) 3 OB) 2 O C) 2.33 OD 1 Question 15 What's printed? def receipt (items): for n in range (len(items)): print (n + 1, items [n]) ilist = ['milk', 'eggs', 'bread') receipt (ilist) O milk 1 eggs 2 bread 1 milk 2 eggs 3 bread milk eggs bread O 1. bread 2. eggs 3. milk None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!