haiii


Do anyone know how to convert array like this into [26 18 20]

because i have to plot graph for these value,

array is not allow me to do that ,i got from database table with data type varchar....problem is i shouldnot change the datatype ....

is there any way............?Please Help me!!!!!

a = ['1','2','3']
# use map
b = map(lambda x:int(x), a)
# or
b = [ int(x) for x in a ]

Cleaner map solution as lambda is not needed:

a = map(int, a)