So I've done all the questions on this assignment, but there's one left where I can't use an if statement which is making this really hard to figure out. What I have to do is create a function, let's call it months, and make it output three letter strings of the months when you input the number of the month. So if you input 4, it give you 'Apr'.
Here's where the problem comes in. If the number inputted is out of the 1-12 range, the function has to output a message telling you that you've entered a number out of the range. How do I do this without an if statement?