Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 1 - Create a List to Sum Values Write a python script that sums the values in a list called add_list that contains the

Exercise 1 - Create a List to Sum Values

Write a python script that sums the values in a list called add_list that contains the following values: (10, 2, -4, 8). Make sure you include a for loop when iterating through the list to sum the values.

Take screenshots of the code and output.

Exercise 2 Create a Dictionary

Write a python script that prints a dictionary where the key numbers are 1, 2, 3, 4, and 5 and the values are the key number times 2. Be sure to use an appropriate loop to iterate through the dictionary when printing the dictionary.

Take screenshots of the code and its output where specified and paste them into a well-labeled Word document for submission.

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

Students also viewed these Databases questions

Question

6. Identify the belly of the whale in Raiders of the Lost Ark.

Answered: 1 week ago

Question

Persuasive Speaking Organizing Patterns in Persuasive Speaking?

Answered: 1 week ago