I have some data (in a string) such as....
person number 1
Name: bob
Age: 50
person number 2
Name: jim
Age: 39
....all that is stored in a string. I need to pull out the names of the
different people and put them in a list or something. Any
suggestions...b esides doing data.index("nam e")...over and over?
thanks!
person number 1
Name: bob
Age: 50
person number 2
Name: jim
Age: 39
....all that is stored in a string. I need to pull out the names of the
different people and put them in a list or something. Any
suggestions...b esides doing data.index("nam e")...over and over?
thanks!
Comment