So basically i have a file with a lot of names and ages and other unnecessary stuff with this kind of format:
Name: Example
Age: 20
Hobbies: Blahblah
Other stuff: jashdjahsdj
And i want to grab the name and the age of every single person in the file and reformat it to something like this:
Name-Age
I'm really new to this so any help would be appreciated.
Thanks in advanced
Name: Example
Age: 20
Hobbies: Blahblah
Other stuff: jashdjahsdj
And i want to grab the name and the age of every single person in the file and reformat it to something like this:
Name-Age
I'm really new to this so any help would be appreciated.
Thanks in advanced
