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
Answers:
Seems you have not declared the variable correctly.
Login to add comment