Hello everyone I have a file of which consist of some random information but I only want the part that is important to me.

```
name: Zack
age: 17
As Mixed: Zack:17
Subjects opted : 3
Subject #1: Arts
name: Mike
age: 15
As Mixed: Mike:15
Subjects opted : 3
Subject #1: Arts

```

Above is a example of my text file I want **Zack:17** and **Mike:15** part to be written in a text file and everything else to be ignored.

I watched some YouTube videos and came across split statement in python but it didn't work.

My code example 

```
with open("/home/ninja/Desktop/raw.txt","r") as raw:
    for rec in raw:
        print rec.split('As Mixed: ')[0]

```

This didn’t work.
Any help will really help me to finish this project.
Thanks.