Introducing the Useless Trivia Program


Combining the skills presented in this chapter, you'll create the Useless Trivia program shown in Figure 2.1.

click to expand
Figure 2.1: Whoa! Steve might think about a diet before he visits the sun.

The program takes three pieces of personal information from the user: name, age, and weight. From these mundane items, the program is able to produce some amusing but trivial facts about the person, such as how old the person is in dog years and how much the person would weigh on the moon.

Though this may seem like a simple program (and it is), you'll find that the program is more interesting when you run it because you've had input. You'll care more about the results because they're personally tailored to you. This holds true for all programs, from games to business applications.




Python Programming for the Absolute Beginner
Python Programming for the Absolute Beginner, 3rd Edition
ISBN: 1435455002
EAN: 2147483647
Year: 2003
Pages: 194

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net