Python Programming for the Absolute Beginner, 3rd Edition

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.

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

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

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

Категории