# Python - Mean-Variance-Standard Deviation Calculator Feedback

**URL:** <https://forum.freecodecamp.org/t/python-mean-variance-standard-deviation-calculator-feedback/409545>\
**Category:** I Built This\
**Created:** [July 14, 2020, 3:12am UTC](https://forum.freecodecamp.org/t/python-mean-variance-standard-deviation-calculator-feedback/409545 "2020-07-14T03:12:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pschorey](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pschorey/32/125923_2.png) [@pschorey](https://forum.freecodecamp.org/u/pschorey)\
**Post date:** [July 14, 2020, 3:12am UTC](https://forum.freecodecamp.org/t/python-mean-variance-standard-deviation-calculator-feedback/409545/1 "2020-07-14T03:12:42Z")

</div>

I passed the challenge “Mean-Variance-Standard Deviation Calculator,” but my answer seems so very clunky to me, and it almost feels like I’m missing something or doing something wrong.

Anyone willing to give my answer some constructive feedback?

My head is still spinning from all the tutorial videos. Starting to learn Python, Jupyter, Numpy, Pandas, and Matplotlib all around the same time is more than my little brain can handle.

Thanks!

[[https://repl.it/join/lhrjpybl-pschorey](https://repl.it/join/lhrjpybl-pschorey)]([http://My](http://My) Solution on Repl.it)

---

<div class="post-metadata">

**Author:** ![Naomi](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/naomi/32/422181_2.png) [@Naomi](https://forum.freecodecamp.org/u/Naomi)\
**Post date:** [July 14, 2020, 3:49am UTC](https://forum.freecodecamp.org/t/python-mean-variance-standard-deviation-calculator-feedback/409545/2 "2020-07-14T03:49:24Z")

</div>

It is a lot to learn, for sure~!

To be honest, your solution is pretty similar to mine - yours is more readable though, I think. My recommendation is to continue your learning, and as you become more comfortable with Python in general you might consider coming back to this project to see if you have new insight for optimisation. I did this for my JS projects, and was quite surprised.

As a final thought, I’ll leave one of my favourite quotes: “Perfection is the enemy of progress”.

---

<div class="post-metadata">

**Author:** ![pschorey](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pschorey/32/125923_2.png) [@pschorey](https://forum.freecodecamp.org/u/pschorey)\
**Post date:** [July 14, 2020, 4:25am UTC](https://forum.freecodecamp.org/t/python-mean-variance-standard-deviation-calculator-feedback/409545/3 "2020-07-14T04:25:22Z")

</div>

Thank you for the feedback!

When you’re going at this ‘alone’ and everything is new it’s easy to have a lot of doubts. Appreciate your advice.

---

<div class="post-metadata">

**Author:** ![Naomi](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/naomi/32/422181_2.png) [@Naomi](https://forum.freecodecamp.org/u/Naomi)\
**Post date:** [July 14, 2020, 4:32am UTC](https://forum.freecodecamp.org/t/python-mean-variance-standard-deviation-calculator-feedback/409545/4 "2020-07-14T04:32:08Z")

</div>

It definitely can be overwhelming. Just remember that we are always here to help. 🙂

---

<div class="post-metadata">

**Author:** ![chrisrajt](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/chrisrajt/32/168952_2.png) [@chrisrajt](https://forum.freecodecamp.org/u/chrisrajt)\
**Post date:** [July 24, 2020, 12:02pm UTC](https://forum.freecodecamp.org/t/python-mean-variance-standard-deviation-calculator-feedback/409545/5 "2020-07-24T12:02:18Z")

</div>

Hi,

I also had a very similar code. However, a little less lines. See, if this help you a bit.

https://repl.it/@ChristopherRaj1/fcc-mean-var-std?lite=true

---

<div class="post-metadata">

**Author:** ![Murad\_Rahimov](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/murad_rahimov/32/134307_2.png) [@Murad\_Rahimov](https://forum.freecodecamp.org/u/Murad_Rahimov)\
**Post date:** [August 4, 2020, 1:55am UTC](https://forum.freecodecamp.org/t/python-mean-variance-standard-deviation-calculator-feedback/409545/6 "2020-08-04T01:55:04Z")

</div>

I have written the code a bit less lines and another thing I want to say it runs in 0.004 s  
https://repl.it/@MuradRahimov/BitterOtherAdvance?lite=true

---

<div class="post-metadata">

**Author:** ![arisayosh](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arisayosh/32/205452_2.png) [@arisayosh](https://forum.freecodecamp.org/u/arisayosh)\
**Post date:** [March 2, 2021, 5:36am UTC](https://forum.freecodecamp.org/t/python-mean-variance-standard-deviation-calculator-feedback/409545/7 "2021-03-02T05:36:17Z")

</div>

I feel you re: the information overload! My initial try yielded a similar code as yours… quite long. So I looked through this thread and some others and ended up with a shorter one (see file: mean\_var\_std2.py). It executed the tests in 0.002s… curious if anyone’s been able to shorten this even further!!

You can find my code here:  
[https://repl.it/@ariyosh/fcc-mean-variance-standard-deviation-calculator](https://repl.it/@ariyosh/fcc-mean-variance-standard-deviation-calculator)

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 1:12pm UTC](https://forum.freecodecamp.org/t/python-mean-variance-standard-deviation-calculator-feedback/409545/8 "2021-06-01T13:12:57Z")

</div>


