Only for review sake

this is to nested. You can improve it simply by using elif insted of "else: if" sequence. e.g
```
elif character.isdigit():