this might be a noob question, but could someone help me with this? I need to make sure the input is strictly a float. My current code returns an error, no matter what type of input.
    pricePerCandy = float(input('Please enter the price per candy (2 decimal places): '))
    if pricePerCandy.isalpha() or pricePerCandy.isalnum():
        print("Please enter the price with 2 decimal places.")
        pricePerCandy = float(input('Please enter the price per candy (2 decimal places): '))
 
     
     
    