I am new to python. I would like to ask how to decode an array of data in python, for example
[ 1 2 3 4 5 6 7 8 9 10 4 3 2 4 11 12 13 14 3 2 1 3]
and I wanted the output to be like:
if data = 1, data become predefined value A
if data = 2, data become predefined value B
...
if data = 16, data become predefined value X
Which function to use in python ? something like case in verilog Thank you !