How do I classify an integer in an elif statement?
LINES 41 TO 47.
I want to say that if the input is a number, then print 'Its a number, not a sport'. I am new to python so don't judge. Click on files to actually open the program. The first one is just a command telling replit to run a specific file. LOOK AT LINES 41 TO 47.
Rather than using a subset; you can just use the isnumeric() function.
Simple way to replace is just changing the current line to
elif (prompt.isnumeric()):. One caveat of this method is that it will only return
True if the entire string is a number, otherwise it will return