June 2021
Beginner
432 pages
9h 9m
English
You won’t be able to handle the fast-paced excitement of these racing . . . snails. But what they lack in speed they make up for in ASCII-art cuteness. Each snail (represented by an @ character for the shell and v for the two eyestalks) moves slowly but surely toward the finish line. Up to eight snails, each with a custom name, can race each other, leaving a slime trail in their wake. This program is good for beginners.
When you run snailrace.py, the output will look like this:
Snail Race, by Al Sweigart al@inventwithpython.com
@v <-- snail
How many snails will race? Max: 8
> 3 Enter snail #1's name: ...Read now
Unlock full access