The object of this code is to simply take in a grade percentage like 90 and return a letter grade like A. The below code works on all floats given to it but not on whole numbers. I don't know why. Any help would be great!
Look closely, and you'll notice that none of your conditions actually account for whole numbers since you always check strictly less than or strictly greater than. So, for example, 90 would not fall into A because it is not >90, nor would it be in the B range because it is not <90.