%run marks.py error
Title
Question
%run marks.py
it shows that math_marks_mean = sum(math_marks_A)/len(math_marks_A)
then it shows that type error : unsupported operand type(s) for /: 'float' and 'builtin_function_or_method,
Python-3.4.3 Parsing-data 10-11 min 30-40 sec
Answers:
Out of the divisor and the dividend in the Division operation you are using a float value and a function object. Both of those cannot be divided hence the error
Please check if you are missing any brackets/syntactical issues and try again. Usually it is good to assign every value to a variable first and then use it in a math expression to avoid such errors and allow to debug easily.
Login to add comment