I am new to programming in python and need help doing this.

I have a text file with several numbers like this:

```
12 35 21
123 12 15
12 18 89

```

I need to be able to read the individual numbers of each line to be able to use them in mathematical formulas.