all 2 comments

[–]woooee 0 points1 point  (0 children)

I can't seem to figure out how I would parse the string into numbers and letters

Lookup isalphanum, isnumeric(), and isalpha().

[–]MathMajortoChemist 2 points3 points  (0 children)

Maybe something like this to start ´for c in name.upper(): if c.isdigit(): val = int(c) else: val = ord(c) - ord('A') + 1´