1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Margaret [11]
3 years ago
15

Write a code that takes numbers from the user as a list. (User can enter as many numbers as he wants). Then, find mean and stand

ard deviation of this list of numbers.
Sample Output 
Enter numbers: 1 2 3 5 4 2 3 2 1 5 8 4 5
The mean is 3.4615384615384617
The standard deviation is 1.983909634004895

Computers and Technology
1 answer:
8090 [49]3 years ago
7 0

nums = list(map(int, input().split()))

mean = sum(nums)/len(nums)

print("The mean is",mean)

values = 0

for x in nums:

   values += abs(x - mean)**2

print("The standard deviation is",(values / (len(nums)-1))**0.5)

I wrote my code in python 3.8. I hope this helps.

You might be interested in
How do you view the edited document without the track changes markup?
daser333 [38]

To check a document:

Open the document you want to inspect for tracked changes and comments.

Click the Microsoft Office Button , point to Prepare, and then click Inspect Document.

In the Document Inspector dialog box, click Inspect.

Review the inspection results. ...

Click Reinspect or Close.


3 0
4 years ago
2. Voltage is:
jenyasd209 [6]
A. The force that moves electrons
6 0
3 years ago
Read the scenario and answer the question:
mel-nik [20]
C even the rest of answers seem practical c would be most likely
4 0
2 years ago
Read 2 more answers
B. Identify the purpose of each of the following types of utility programs
olya-2409 [2.1K]

<u>These are the types </u>:

1. Antivirus software : Detects and removes virus and malwares from   computer system.

2.Disk defragmenter : Reduces the fragmented space in the disk.

3.Disk cleaner : Build to find and delete unwanted files to free the disk space.

6 0
4 years ago
What is the difference between a ROM chip and a RAM chip?
Leokris [45]

Answer:

A: A ROM chip is non-volatile and will keep its data in the case of a power failure. A RAM chip is volatile and will wipe its data in the case of a power failure.

Explanation:

ROM chips were widely used at the time of the old consoles, because with it you had an extremely fast and non-volatile memory, but this technology is very expensive and started to use CDs in the Consoles, while the RAM memory is a memory of execution random (RAM = RANDOM ACESS MEMORY).

4 0
3 years ago
Other questions:
  • Assume that x is a char variable that has been declared and already given a value. Write an expression whose value is true if an
    8·1 answer
  • Assign to avg_owls the average owls per zoo. Print avg_owls as an integer. Sample output for inputs: 1 2 4 3
    7·1 answer
  • C++
    8·1 answer
  • Refer to the image below. The letter item indicated at 3. is_____________________ a Your Address - Where you are b The Letter Ad
    7·1 answer
  • In the web address www.microsoft, the "" is the _____ meaning _____. A. B. C. D. Group of answer choices top-level domain (TLD);
    6·1 answer
  • Grace Hopper led the development of ______, a programming language for business applications.
    6·2 answers
  • (TCO B) The symbol shown as a three-sided box that is connected to the step it references by a dashed line is what?
    8·1 answer
  • Free coins who is octane and dont say u dont know because i will do the same to u
    13·2 answers
  • PLEASE HELP ILL GIVE BRAINIEST
    6·2 answers
  • What is the error in this program?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!