lukejagg / test-canary

Miscellaneous files for ML + web development
0 stars 1 forks source link

Add New Calculator Function #241

Closed ghost closed 1 year ago

ghost commented 1 year ago

Description

This PR adds a new operation to the calculator program for computing the exponent of a number. The new operation is implemented as a function named exponent in the calculator.py file. The function takes two arguments, base and exponent, and returns the result of base raised to the power of exponent. The exponent operation is added as an option in the calculator's interactive menu, and the operation is performed when the user selects this option.

Summary of Changes

Fixes #1.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-exponent-operation_2

šŸŽ‰ Latest improvements to Sweep:


šŸ’” To get Sweep to edit this pull request, you can: