Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

Tell us what’s happening:

Hey guys, im trying this Mean-Variance-Standard Deviation Calculator and keep showing the same error that is " typeerror: unsupported operand type(s) for -: ‘dict’ and ‘dict’ ", how can i solve this one?

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Challenge Information:

Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

We need to see your code.

If you have it on Gitpod, you can share a snapshot of your Gitpod workspace.


When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Always good to search the forum when you have a specific error like this as well:

https://forum.freecodecamp.org/search?q=unsupported%20operand%20type(s)%20for%20-%3A%20%27dict%27%20and%20%27dict%27%20%22%20order%3Alatest_topic

Looks like this might occur when your output simply doesn’t match the example.

Can you show your output using the example from the instructions?