This code is supposed to take in a number and check if it is equal to 10.
During testing, I get an error when checking for a number that would be false, and I'm not sure why.
What would be the best/correct way to go about this code?
@carouselcat if it is an autograded assignment you should double check the instructions and check whether any functions that might be tested are spelled correctly. If the checking algorithm cannot find your function it will not be able to test it. Also, switch the == in the if statement to ===, see if that works.