Jan-18-2019, 07:03 PM
The solution is to use a dictionary
table = { "Customer complaint noise replace the ball joint": 42, "clutch repair": 43, } data = 'clutch repair' print(table[data]) # prints 43