Firstly I have this long string
s = '1MichaelAngelo'
How can I get the output as
new_s = '1 Michael Angelo'
and as a list
new_list = [1,'Michael', 'Angelo']
Note: I have like a thousand I parsed from an html.
Secondly, I have this huge string (consists of names and numbers up to 1000]). E.g
1\nfirstName\nlastName\n.......999\nfirstName\nlastName
where \n
denotes a newline.
How can I extract data from it to output something like:
[1, 'Michael', 'Emily], [2,'Mathew','Jessica'], [3, 'Jacob', 'Ashley ']
and so on.