Encontrando a Rota Máxima em uma determinada entrada [fechada]

Eu tenho isso como uma lição de casa e eu preciso fazer isso em python.

<code>Problem:
The Maximum Route is defined as the maximum total by traversing from the tip of the triangle to its base. Here the maximum route is (3+7+4+9) 23.

3
7 4
2 4 6
8 5 9 3

Now, given a certain triangle, my task is to find the Maximum Route for it. 
</code>

Não sei como fazer isso ....

questionAnswers(4)

yourAnswerToTheQuestion