Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1 (2 Points) Consider the following variable. In [ ]: myvar = { 1:{'name': 'joe', 'age' : 20}, 2:{'name': 'john', 'age' : 30}} In [

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Q1 (2 Points) Consider the following variable. In [ ]: myvar = { 1:{'name': 'joe', 'age' : 20}, 2:{'name': 'john', 'age' : 30}} In [ ]: #1.1: What is the type of this variable. print('?' (myvar)) In [ ]: #1.2: We want to show joe as the result of the following code, # complete the following command such that it shows joe. print(myvar '?''?') In [ ]: #1.3: We want to add a new element to this variabe, #the person that we want to add is Mike, 25 years old. # complete the following commands. myvar[3] = '?' myvar[3]'?' = 'Mike' myvar[3]'?' = 25 print(myvar) In [ ]: #1.4. Now, we want to find the average of ages. # complete the following commands. X = ? for vari in myvar.'?': X += '?' mean = x/'?' print(mean) Q2. (2 points) Considere the following variable. In [ ]: Students_Info={'lloyd' : { "name": "Lloyd", "homework": [90.0,97.0,75.0,92.0], "quizzes": [88.0,40.0,94.0], "tests": [75.0,90.0] }, alice':{ "name": "Alice", "homework": [100.0, 92.0, 98.0, 100.0], "quizzes": [82.0, 83.0, 91.0], "tests": [89.0, 97.0] }, 'tyler': { "name": "Tyler", "homework": [0.0, 87.0, 75.0, 22.0], "quizzes": [0.0, 75.0, 78.0], "tests": [100.0, 100.0] }} In [ ]: # 2.1. Show Lloyd's all info In [ ]: # 2.2. Show Lloyd's Homework grades In [ ]: # 2.3. Show Lloyd's Last grade on the homework. In [ ]: # 2.4. Show Lloyd's average on homework if all of them have the same percentages. Q3 (2 points) Create a function space_lower_upper_count that accepts a string and returns a dictionary that contains the count for spaces, upper and lower case characters in that string. For example Texas State" should get spaces': 1, 'lower': 8, 'upper: 2}. In [ ]: # write your code here: Q4. (2 points) In [ ]: # run this code first !pip3 install COVID19Py In [ ]: # run this code as well. import COVID19Py covid19 = COVID19PY.COVID19) location = covid19.getLocationByCountryCode("US") print(location) Based on the above data, find covid-19 infection rate and death rate? In [ ]: # infection rate: In [ ]: # death rate Q5 (2 points) Consider the following text. Find the frequency of the words in this text. In [27]: str1= "" The Master of Science in Business Analytics is an approved Science, Technology, Engineering and Mathematics (STEM) program. The program offers students from business and non-business backgrounds an opportunity to develop expertise in the art and science of business analytics in this high-demand field. Students will learn how to collect, organize, analyze, optimize and interpret Big Data. The program emphasizes decision-making skills to apply Big Data findings to business challenges. Our faculty have been involved in research on social media, organization behavior analytics, service computing, business analytics, reliable distributed systems, web databases and semantic integration systems. Learn statistical and research methods. Acquire knowledge in database management and data warehousing. Identify, document, model, assess and improve core business processes. Appreciate relevant business trends in the marketplace and consumer behaviors. Develop skills that prepare you for the demands of the global business environment. Enhance your project management skills including initiation, planning, execution, controlling and closing projects. Investigate the technologies, methods and practices that foster innovation, new business opportunities and new efficiencies. In [ ]: # write your code here

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

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions

Question

Distinguish between formal and informal reports.

Answered: 1 week ago

Question

To solve p + 3q = 5z + tan( y - 3x)

Answered: 1 week ago