first = input("first #:")
operator = input("operator: ")
second = input("second #:")
is_float = true ? false
if (is_float == true) {
first = float()
second = float()
} else if (is_float == false) {
first = int()
second = int()
}
print(first + operator + second )
I am practicing python and i want to make a more indepth calculator that has 2 numbers and various operators for adding subtracting multiplying etc and i want it to switch between a true or false boolean whether or not its a float number. im not quite sure how to do this would someone be willing to explain how booleans work in python? I completely understand not spoon feeding but im not sure how to finish this