Project: Pythonic Attempt 2

Another attempt at producing the final application.

Review of chapter

In this chapter, we have covered the following:

  • Using intstr, and float data types and how to transform one type of data to another.

  • Computing simple mathematical expressions in Python, using +-*, and /.

  • Using def to define our own custom, user-defined functions to better organize our code.

With these new skills at our disposal, let’s try to determine how many requirements of the final product we can meet.

Cheat sheet

This cheat sheet will help us have a quick look at the useful commands while we write the code for the final product.

Python cheat sheet
Python cheat sheet

Reviewing the project requirements

Let’s look at the original product requirements to determine what portions of it we can create with the skills we have acquired so far. Remember, our client had asked us to make an app for students to hone their basic maths skills.

The client’s requirements
The client’s requirements

What did we have by the end of the first chapter?

By the end of the first chapter, we were able to take input from the user, greet the user in a customized way, and pose questions to the user.

Fulfilling further requirements

In this chapter, we learned about different data types and understood how to deal with numbers if they are given as input. We practiced with different operators and now know how to perform simple mathematical operations, and that takes care of requirement 6 of our project. We will also learn to generate random questions in this lesson to fulfill requirement 3. Furthermore, we now know how to contain codes in an organized way using user-defined functions. Let’s see how far these new concepts take us.

The requirements completed so far
The requirements completed so far