I want to check the type of input, check if data is float or int.
# type of inData will be String
inData = input("Enter Data")
if inData.isdigit():
print("Integer")
This will check if the inData
is an integer, but this won't check for float type.
Any suggestions?