Good day Everybody, I have question, is there away to split the data into fixed length ?
suppose
data=2220591972004161833372381965973430564161832220599125418620936367891254212825967504230783108294828632042934883049336591444611742626636047927395221895991254390547243063380503905471**64**
I want to split into 3 part like:
d1=222059197200416183337238196597343056416183222059912541862093636789125421282596750423078310829482863204293488304933659144461174262663604792739522189599125439054724306338
d3=050390 >>>> length is 6
d4=5471 >>>>> length is 4
Where the last 2 digits of data is 64
are used to determine the length of d3 and d4.
I have seen many example of split function as list and so on but none of these is what i look for such like here and here there is one program written in c++ i want same like in python here
another example for string data split data into to parts same way, last one digit is a size of x2
data2=cc32b326560de95d0fba47b5ad9072418f15caca4c39c2fe4db7003f4b8f81a79
x=cc32b326560de95d0fba47b5ad9072418f15caca4c39c2fe4db7003
x1=f4b8f81a7 >>>>length is 9
i'm using python 3.6
spyder. thanks all