+ 1
how can elements of a string be converted to an integer?
ex: arr= 07:25:32, can these array elements be separated to individual numbers??
3 odpowiedzi
0
isn't that an integer array?
0
but it has colons in between
0
so if your arr is string
arr = '07:25:32'
You can get list of items. Split it!
arr = arr.split(':')
and then u can get each list element as int
int(arr[0]) #will give you 7