I am trying to match the letters on the alphabet "A-Z" with numbers 1-26 and the numbers 0-9 with 48-57. I am aware I could accomplish the alphabet part with ASCII tables but I was wondering if there is a quick or easy way in Python to define this behaviour:
- Define a list (for easy understanding let's call this List1) of letters and numbers.
- Define a list (List2) of numbers
- Assing each item on the first list with the item on the same position on the second list.
The idea is to be able to pass a list of numbers (List2) and return their correspondent item on List1.
This is to decode ADS-B data for plane identification. More info here.