how to convert a list with single element to a integer in python code example Example: convert each element of list to int python test_list = list(map(int, test_list))