I was hoping someone could help or hint to where I'm going wrong with this Python homework assignment:
number = int(input("Enter a number"))
if number == int or float:
print(number * number, number * number * number, number ** 4)
elif number != int or float:
print("This is not a valid number")
It runs fine with a whole number, but not with a float or a string. I think it's because number is set to look for an integer, but I'm not sure what to substitute that with in order to make it work.