I\'ve made a function that converts a string into a number based off the type, and when I use it on a character it throws an error. Here it is:
def number(numstri