Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

P 9 . Given the following list of integers: L = [ 2 , 3 , 5 , 7 , 1 1 , 1 3

P9. Given the following list of integers: L=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47] write a python program to do the following:
a. Calculate the sum of all the values and print the sum.
b. Calculate the average of all the values and print the value.
c. Calculate the product of all the numbers and print the value
d. Calculate the square of each number in the list. Print the square of each value as follows:
2:4
3:9
...

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago