Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Coding, Please Help! Question 1: For loops (25 points) (a) The average (or the arithmetic mean) of a set of numbers is defined as

image text in transcribedPython Coding, Please Help!

Question 1: For loops (25 points) (a) The average (or the arithmetic mean) of a set of numbers is defined as the sum of the numbers, divided by the total number of numbers. Write a for loop that sums up 10 random numbers between [0,10], and print their average with 4 figures after the decimal point (in other words 5 significant figures). (b) Repeat part (a) for 102,103, and 106 random numbers between [0,10]. Comment on your result. (Hint: You may want to use numpy.random.randint().)

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

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions

Question

BPR always involves automation. Group of answer choices True False

Answered: 1 week ago

Question

10-9 How have social technologies changed e-commerce?

Answered: 1 week ago