my integer input is suppose 12345 , i want to split and put it into an array as 1,2,3,4,5 . How will i be able to do it?
For input file separate by space/tab like:
1 2 3 4 5 6 7 8 9
data = [[1,2,3], ...
I have a string "42 0" (for example) and need to enter into an array the two integers. can i do a .split on a space? thanks in advance
This works !
>>> from datetime import date >>> today=date(2011,10,11)
>>> day = '2011/10/11' >>> today=date(day.split('/'))
>>> day.split('/') ['2011', '10', '11']