def math (x,y):
if x and y == str:
print(x+y)
print(x-y)
else:
print("Type Number")
math(3,4)
I'm using Python and what I'm trying to do is that I want to plus and minus x and y. If x and y were both numbers then the function will work. Otherwise, if x or y were not numbers then it will say "Type Number" But, the program says "Type Number" even though I typed Number.