May-07-2019, 08:04 AM
this is everything that is printed out after I run it.
Error:runfile('C:/UsersDesktop/python ode/extrial.py', wdir='C:/Users/Desktop/python ode')
[-1, 3]
[2, 6]
[-4, -1]
Traceback (most recent call last):
File "<ipython-input-779-717f169c285d>", line 1, in <module>
runfile('C:/Users/Desktop/python ode/extrial.py', wdir='C:/Users/Desktop/python ode')
File "C:\Users\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 668, in runfile
execfile(filename, namespace)
File "C:\Users\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/Desktop/python ode/extrial.py", line 111, in <module>
print(I1/I2)
File "C:/Users/Desktop/python ode/homework2.py", line 52, in __truediv__
raise ValueError('Please make sure values is of sort int and x !=0')
ValueError: Please make sure values is of sort int and x !=0