Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

ISBN: 1285427106, 978-1285427102

Students also viewed these Databases questions

Question

Which team solution is more likely to be pursued and why?

Answered: 1 week ago