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
When you are using the internet to research a school project, and you ignore the banner ads on websites even though you see them
FinnZ [79.3K]

Answer:

The answer is "selective exposure".

Explanation:

It is a theory in psychology, that is sometimes used in marketing and advertising studies. It traditionally applies to the propensity of people to prefer evidence, that enhances existing previous views while ignoring conflicting information.

These types of approaches are occurring, when the people pursue knowledge and consistently express desires for solutions, that are associated with their beliefs, rather than incompatible.

5 0
3 years ago
What are some difficulties in synchronizing audio and video during telecine transfer? (Select all that apply.)
Oksi-84 [34.3K]
Telecine<span> is the process of </span>transferring<span> motion picture film into </span>video<span> and is performed in a color ... The most complex part of </span>telecine<span> is the </span>synchronization of the mechanical <span>film motion and the electronic video signal.</span><span> not noticed in the picture (but may be more noticeable </span>during<span> action speed. 

Telecine transfer can speed up the film, and Audio recordings are shorter than film. </span>
3 0
3 years ago
In this exercise, you will be given a phrase that includes the word “meat”. Replace that word with the word “fruit” and return t
Aleks [24]

Answer:

Answer is in the provided screenshot!

Explanation:

This answer is actually a simplified version of another question I've answered for you here: brainly.com/question/15538849

If you need any more explanation on how this algorithm works, please ask me!

8 0
3 years ago
Described how the HCS12 MCU uses a vector to find the correct interrupt service routine after an interrupt occurs.
Arte-miy333 [17]

Answer:

In the HC12 MCU, the starting address of interrupts is stored in the vector table as a vector. The ISR or interrupt service routine fetches the vector of the interrupt to be executed.

Explanation:

The HC12 or 68HC12 microcontroller was developed by Motorola, its controllers have a clock speed of between 8 to 33MHz.

The MCU stores interrupt events in a vector table where the interrupt service routine fetches enabled interrupt to execute.

When an interrupt is detected, the MCU stores all its registers in a stack to be able to return to the program it was previously running, then it disables the maskability flag register to prevent another maskable interrupt from occurring during the current interrupt execution.

The MCU interrupt service routine fetches the required interrupt from the vector table. After the interrupt is executed, the mask flag is enabled and the MCU retrieves or returns back to the previous program in the stack.

7 0
3 years ago
Which of the following describes computer animation Select one of the options below as your answer:
Tresset [83]
I think it is B
--------------
4 0
3 years ago
Read 2 more answers
Other questions:
  • If a linux installation ends abnormally and the screen displays a fatal signal 11 error, what type of error has occurred?
    7·1 answer
  • How would you add the double 75.6 to the end of an ArrayList of Doubles named myDoubles?
    10·1 answer
  • Computer hardware without software is usless and compyrersoftware without hardware is meaningless discuss
    6·1 answer
  • Clunker Motors Inc. is recalling all vehicles from model years 2001-2006. Given a variable modelYear write a statement that prin
    9·1 answer
  • Which of the following would be considered hardware? Select 3 options.
    7·1 answer
  • Water is constantly in motion.<br> True or false
    6·1 answer
  • Write a program named guess_number.py. Use NumPy to generate a random number between 1 and 100. Accept int input and ask user to
    6·1 answer
  • In order to preview an attachment in an e-mail, click the attachment in the ______
    8·1 answer
  • A(n) ___ is a set of CPUs which work in parallel in an attempt to simulate the way the human brain works, although in greatly si
    5·1 answer
  • Consider the following method substringFound, which is intended to return true if a substring, key, is located at a specific ind
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!