1test_list = ['1', '4', '3', '6', '7']
2
3int_list = [int(i) for i in test_list]
1# Basic syntax:
2list_of_ints = [int(i) for i in list_of_strings]
3
4# Example usage with list comprehension:
5list_of_strings = ['2', '3', '47']
6list_of_ints = [int(i) for i in list_of_strings]
7print(list_of_ints)
8--> [2, 3, 47]
1# Python code to convert list of
2# string into sorted list of integer
3
4# List initialization
5list_int = [1, 12, 15, 21, 131]
6
7# mapping
8list_string = map(str, list_int)
9
10# Printing sorted list of integers
11print(list(list_string))
12