@Steffan Review for
#1407: it'd be nice to have a check even when the user is running the program instead of an assertion that only shows up when we're testing or whatever. That way we could provide an error message so the user knows their digit is too big. I don't understand the big string you've modified at the end in the elements dictionary but the function itself looks good to me