BasicCalculator
Let's start building! As you know that the calculator will be popular, you want to make the code as efficient as you can.
You recall that the NumPy package is a powerful numerical computing library for Python. It even serves as the foundation for many other scientific computing and data analysis libraries.
You decide to use the NumPy package to create your basic calculator. Now, you need to refresh your memory of how NumPy works.
numpy
has been imported for you as np
.
This exercise is part of the course
Case Study: Building Software in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Load the numpy package into the environment
____
# View documentation for numpy.add
____