Hello everyone, this is my first post here, I've been trying to learn how to program. For the most part i haven't had a whole lot of trouble, however I currently have a situation where the code isn't doing what i expect it to do, can someone review my code and tell me where i'm off, I don't want a completely different code then I wouldn't learn.
the error i'm getting is "apple" returned 1.5 instead of 2.. so for some reason in the calculations it's sorting the list numerically, but still using the keys alphabetically. Is there some way to keep my coding the same and maybe add a .sort function or something??