test_list = ['1', '4', '3', '6', '7']
int_list = [int(i) for i in test_list]
a_string = "1 2 3"
a_list = a_string. split()
#a_list >>> ['1','2','3']
int_list = [int(i) for i in list]
test_list = ['1', '4', '3', '6', '7']
test_list = list(map(int, test_list))
# Basic syntax:
list_of_ints = [int(i) for i in list_of_strings]
# Example usage with list comprehension:
list_of_strings = ['2', '3', '47']
list_of_ints = [int(i) for i in list_of_strings]
print(list_of_ints)
--> [2, 3, 47]