list of strings to numbers python

test_list = ['1', '4', '3', '6', '7'] 

int_list = [int(i) for i in test_list]

Here is what the above code is Doing:
1. We have a list of strings, test_list.
2. We create a new list, int_list, and use a list comprehension to convert each string in test_list to an integer.
3. We print the contents of int_list to the console.