Question: Hey Guys, I am writing a python code to figure mean and standard devitation. Unfornately, when I am trying to run the program, the error

Hey Guys, I am writing a python code to figure mean and standard devitation. Unfornately, when I am trying to run the program, the error keeps telling that "NameError: name 'numList' is not defined". I wrote all the steps right and I couldn't find the error. Can you please help??

import random import statistics

def problem4_2(numList): numList = {} random.seed(150) for i in range(0, 25): numList.append(round(100*random.random(),1)) print("The mean of this random set is", statistics.mean(numList)) print("the standard deviatation of this random set is", statistics.stdev(numList))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!