I tried to write a simple fizzbuzz program in python,
I tried to use isinstance
to determine if a number is a float
or a int
instead of creating a list, but whenever I try it for some reason it considers every number to be a float is this a thing in python or a flaw in my logic?
i = 3
if isinstance(i/3,float) == False:
print("Fizz")
else:
print("???")