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
Get step-by-step solutions from verified subject matter experts
