Project

Smart Calculator (Python)

Challenging
1317 completions
~ 25 hours
4.4

Apart from writing a useful program (everyone uses calculators!), you will learn a lot about lists, strings, and other data types. You will also get a closer experience with 2 important data structures: the stack and the queue.

Provided by

JetBrains Academy JetBrains Academy

About

Calculators are a very helpful tool that we all use on a regular basis. Why not create one yourself and make it really special? In this project, you will write a calculator that not only adds, subtracts, and multiplies, but is also smart enough to remember your previous calculations.

Graduate project icon

Graduate project

This project covers the core topics of the Python with Algorithms for Tech Interviews course, making it sufficiently challenging to be a proud addition to your portfolio.

At least one graduate project is required to complete the course.

What you'll learn

Once you choose a project, we'll provide you with a study plan that includes all the necessary topics from your course to get it built. Here’s what awaits you:
Enable your calculator to keep adding numbers in a loop until the user enters “exit”.
Using lists and strings, make it possible to calculate sums of multiple integers.
Where there is a plus, there is a minus. Using your knowledge of lists and strings, enable the calculator to deal with subtraction as well as addition.
There’s no math without errors: teach your program to alert the user to errors in the case of invalid input.
Working with dict, enable the calculator to use variables.
Time to upgrade and add even more possible operations: multiplication, division, powers, and calculations in parentheses.

Reviews

Chanitha Chamadith Gunasekera avatar
Chanitha Chamadith Gunasekera
2 years ago
This project is goo if you have pachence. In this project there many new things to lean.
James McBean
2 years ago
This project really demonstrates the use of stacks and regular expressions.
Pingo avatar
Pingo
2 years ago
I've learned a lot about regular expressions and to work with stacks ans queues.

4.4

Learners who completed this project within the Python with Algorithms for Tech Interviews course rated it as follows:
Usefulness
4.6
Fun
4.2
Clarity
4.3