# Example program using the isFloat() function
# isFloat takes a string as input, and returns a Boolean value
# as output.

# Add this line to the top of your program to make the isFloat
# function available. You also need to have your program and the
# file "helper.py" in the same folder when you run your program.

# Get access to the isFloat() function
import helper 

# Ask user for input
inString = raw_input("Enter a number: ")

# Check to see if the string can be converted to a float
goodInput = helper.isFloat(inString)
# Print out the resulting Boolean value
print "The value of isFloat( '"+inString+"' ) is",goodInput

if goodInput:
    print "The string '"+inString+"' could be converted to a float."
else:
    print "The string '"+inString+"' could not be converted to a float."

raw_input("Press enter to exit")
