The function assigns a numerical value to a string input based on its position in the list of inputs.

