Lowercase alphabet position 97-122 For the 'abz099' Result:
And add 99
def find_plate(number_plate): byte_array = number_plate.encode(encoding="utf-8") add_num = byte_array[0] - 97 + (byte_array[1] - 97) * 26 + (byte_array[2] - 97) * (26 ** 2) return 1000 * add_num + int(byte_array[3:6])
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
With the use UTF-8 table
Lowercase alphabet position 97-122
For the 'abz099' Result:
And add 99