Good morning, I have this code and it turns out that I get this error when I compile
Traceback (most recent call last): File "questionnaire__5.py", line 25, in aa = (a) / (b) TypeError: unsupported operand type (s) for /: 'NoneType' and 'NoneType'
def myfun(x):
np.cos(x)/(1+(np.sin(x))**2)
a=myfun(np.pi/3)
b=myfun(np.pi/6)
aa=(a)/(b)
print(aa)
Do you know what is happening?