O'Reilly logo

Hello World! Second Edition: Computer Programming for Kids and Other Beginners by Warren Sande and Carter Sande

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 25. Skier Explained

In Chapter 10, you typed in a Skier game (hopefully!) and ran it. There were some notes in the code, but we didn’t give any other explanation. Typing in code and running it, even if you don’t completely understand it, can be a great way to learn programming in general or learn a particular language.

But now that you know more about Python, maybe you’re a little curious about how the Skier program works. In this chapter, we’re going to go through it in detail.

The skier

First we’ll program the skier. When you played the Skier program, you probably noticed that the skier only moves back and forth across the screen. He doesn’t move up and down. The illusion of skiing “down” the hill is created by the scenery (trees ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required