Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert all numbers in list to string python

# Python code to convert list of 
# string into sorted list of integer 
    
# List initialization 
list_string = [1, 12, 15, 21, 131]
    
    
list_int = []
# using iteration and sorted() 
for i in list_string:
    list_int.append(i)
    
# printing output 
print(list_int)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #convert #numbers #list #string #python
ADD COMMENT
Topic
Name
3+6 =