Python Project: Completed

Piece together all components to produce the final application.

Review of the chapter

In this chapter, we covered the following:

  • The comparison operators can be used to compare values (compare user_answer to correct_answer for equality, in our case). 

  • The need for if, elif, and else to perform an action only when certain condition(s) are met.

  • The convenience that the while loops bring when performing repetitive tasks.

Cheat sheet

Python cheat sheet
Python cheat sheet

Reviewing the project requirements

Once again, let’s look at the original product requirements, this time to appreciate how far we’ve come!

Client’s requirements
Client’s requirements

The remaining project requirements

We’ve covered most of the project requirements. We’re left with just three remaining requirements, as highlighted in green below:

The project requirements that require printing on the screen
The project requirements that require printing on the screen

Now, let’s fulfill these requirements one by one. Solutions are provided after each part. Give each part an attempt, and if you feel stuck, you may see the solution.

A visual representation of how to look at the project with a coding mindset
A visual representation of how to look at the project with a coding mindset