what I show you - is better. Obviously separator is '##'.
for sqlite look at sqlite3 module
spam ='2020-05-22##18:00:00###RANGE ###RANGE ###RANGE ##201828##190182##96136##2 ##0 ###RANGE ###RANGE ##532387##644##313415' eggs = [ele.strip() for ele in spam.split('##') if not ele.startswith('#RANGE')] print(eggs)
Output:['2020-05-22', '18:00:00', '201828', '190182', '96136', '2', '0', '532387', '644', '313415']
It's not clear if there could be case where instead of '#RANGE' you have a valid value and you need to handle such case.for sqlite look at sqlite3 module
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs