Welcome to the space corps. Your mission is to build the first human outpost on Mars. For years, the world’s greatest scientists have been sending robots to study it up close. Soon you too will set foot on its dusty surface.

Travel to Mars takes between six and eight months, depending on how Earth and Mars are aligned. During the journey, the spaceship risks hitting meteoroids and other space debris. If any damage occurs, you’ll need to put on your spacesuit, go to the airlock, and then step into the void of space to make repairs, similar to the astronaut in Figure 1-1.

In this chapter, you’ll go on a spacewalk by using Python ...

Get Mission Python now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.