saving . . . saved error in %run command has been deleted. error in %run command has been hidden .
error in %run command
Title
Question
after typing the last command %run marks.py , it shows an error as
%run marks.py
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
~\marks.py in <module>
      9         math_marks_A.append(math_mark)
     10
---> 11 math_marks_mean=sum(math_maths_A)/len(math_marks_A)
     12 print(math_marks_mean)

NameError: name 'math_maths_A' is not defined

Python-3.4.3 Parsing-data 10-11 min 30-40 sec 27-05-21, 6:14 p.m. KAVYA_30

Answers:

Seems you have not declared the variable correctly.
05-06-21, 7:52 p.m. pravin1389


Log-in to answer to this question.