Introducing the Mad Lib Program


The chapter project, the Mad Lib program, asks for the user's help in creating a story. The user supplies the name of a person, a plural noun, and a verb. The user can also choose from several adjectives and may select one body part. The program takes all of this information and uses it to create a story. Figures 10.1 through 10.3 show off the program. As you can see, the Mad Lib program uses a GUI to interact with the user.

click to expand
Figure 10.1: A nicely laid-out GUI awaits the user's creativity.

click to expand
Figure 10.2: The user has entered all of the necessary information.

click to expand
Figure 10.3: After clicking the Click for story button, the text box displays the literary masterpiece.




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