The question asks to make an if statement that recognizes if the input is an 'int' or 'float'. I tried writing this as
if type(x) == int or float:
but apparently that doesn't work, it has to be written,
if type(x) == int or type(x) == float:
Is there a way to combine this statement like the one I wrote first?