{moderator edit - solution code removed}
This is from the week 3 practice lab. I have been trying for over half an hour to figure out what’s wrong with my code but just can’t pinpoint it. Strange thing is, it seems to work for one part, but just refuses to work for the next one. Any insights would be highly appreciated.