How do i upgrade Python on my RP3 with Hassbian?

This was to v3.6, but the principal should be the same