def amt_check(data):
    '''Check the data is in the form of money or not'''
#   format = 123.45
    data = str(data)
    if data.isdigit():
        return 1
    else: 
        try: 
            new = "%.2f" % float(data)
            return 1
        except:
            return 0
Check the data is in the form of money or not
recipes/Python/496762_Personal_Finance_Assistance/recipe-496762.py