Run
# Given a list my_list = ['10', '20', '30', '40'] # Take an empty list to store the integers list_int = [] # Convert list of strings into list of integers for item in my_list: list_int.append(int(item)) print(list_int)
Output