if type(x) == (int or float):
Why I didn’t get this right?
on the hint the answer is:
if type(thing) == int or type(thing) == float:
But I am wondering are there more simple and intuitive way to code?