Lesson 12Pulling It All Together: Prompting for an Address

In this lesson, we'll put everything we've learned in the book so far into a single program, including declaring variables, storing values into variables, accepting user input, and displaying input values to the user. We will also, of course, use proper Python syntax along the way as well as take advantage of data types we've seen.

This is a code-along, rather than a lesson, like the other chapters. We will start with a completely empty program and add code to it a little at a time to build out a complete program. You should start at the beginning of the lesson and complete the steps in the order given. Verify that your code runs as expected and without error before continuing to the next step.

One step includes a challenge activity. This is optional and the code for the challenge activity is not included in the steps that follow it. But you are encouraged to try it on your own before going to the next step. We will provide all code for the program at the end of the activity, including the solution for the challenge activity.

STEP 1: GETTING STARTED

For this activity, you will need ...

Get Job Ready Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.