Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started