Here's what my code looks like...
if re.match('[a-z]',usrInput):
run onlyLetters function
elif re.match('[0-9]',usrInput):
run onlyNumbers function
elif re.match('[a-z0-9]',usrInput):
run lettersAndNums function
The problem is, if I enter text such as '2394jsdkfjsdkm', it will read as onlyLetters because it satisfies the first condition in the if statement. I would really like an input like this to be lettersAndNums. How do I need to alter the code?