Hi,
I have a number ,i have to split it into 3 digits
For Example num = 001001001001000 001
After the split it should be
001
001
001
001
000
001
Is there any better way to split it
num = '00100100100100 0001'
x1 = num[0:3]
x2 = num[3:6]
x3 = num[6:9]
x4 = num[9:12]
x5 = num[12:15]
x6 = num[15:18]
Thanks
PSB
I have a number ,i have to split it into 3 digits
For Example num = 001001001001000 001
After the split it should be
001
001
001
001
000
001
Is there any better way to split it
num = '00100100100100 0001'
x1 = num[0:3]
x2 = num[3:6]
x3 = num[6:9]
x4 = num[9:12]
x5 = num[12:15]
x6 = num[15:18]
Thanks
PSB
Comment