I need to take an input and convert it to whatever type of variable it is. For example if the input is two, I need to figure out that 2 is and integer and then store the int converted input to an int type variable. For example:
>>> myInput = input("Input a number: ")
>>> if myInput is float:
>>> print("myInput is a float")
>>> if myInput is int:
>>> print("myInput is an integer")
Input a number: 2
myInput is an integer
However, what actually happens is:
Input a number: 2
and then the program ends.