To convert a list of numbers in string to integer list we can use the map function.
eg :
lst = ['0','1','2','3','4','5']
lst_int = map(int,lst)
So lst_int becomes [0,1,2,3,4,5]
A technology and programming blog to share knowledge and solutions to problems came across
Comments
Post a Comment