Hi fairly new to python and I cant get my head round why this isn't working.
I want to have an object the user to input something as a string, if the string can also be a float, I want the object type to be a float.
def Representsfloat(s):
    try:
        float(s)
        return True
    except ValueError:
        return False
item_finder = input("Enter an Item to find: ")
def account_finder():
    if Representsfloat(item_finder) == True:
        item_finder = float(item_finder)
    else:
        pass
Thanks
 
     
     
    