Lists!

Another program I made was one that would ask the user to introduce 10 numbers, then it would store those numbers in a list and output the total, average, and standard deviation of them.

First things first, I learned about lists in python from this page:

https://www.tutorialspoint.com/python/python_lists.htm

Also, I didn’t actually know the formula for standard deviation, so I looked it up and found these useful pages:

https://www.mathsisfun.com/data/standard-deviation-formulas.html

http://www.gmatfree.com/module-999/gmat-standard-deviation/

Finally, this other page helped me by giving me an idea of how to do it:

http://stackoverflow.com/questions/15389768/standard-deviation-of-a-list

At the end, my program looked like this:

lists

And worked like this:

lists-run

2 thoughts on “Lists!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s