M
Mark Light
Hi,
I have a string e.g. 'C6 H12 O6' that I wish to split up to give 2
strings
'C H O' and '6 12 6'. I have played with string.split() and the re module -
but can't quite get there.
Any help would be greatly appreciated.
Thanks,
Mark.
I have a string e.g. 'C6 H12 O6' that I wish to split up to give 2
strings
'C H O' and '6 12 6'. I have played with string.split() and the re module -
but can't quite get there.
Any help would be greatly appreciated.
Thanks,
Mark.