3REPEAT AFTER ME

image

Everyone talks about the heroism and glamour of space travel, but some of it is routine, repetitive work. When you’re cleaning, gardening in the space station greenhouse, or exercising to keep your strength up, you’re following detailed plans designed to keep the team safe and the space station operating. Luckily, robots take care of some of the drudgery, and they never complain about having to repeat themselves.

Whether you’re programming robots or building games, the loop is one of your basic programming building blocks. A loop is a section of a program that repeats: sometimes it repeats a set number of times, and sometimes ...

Get Mission Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.