lukejagg / test-canary

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

Add new exponent operation to calculator #253

Closed ghost closed 1 year ago

ghost commented 1 year ago

Description

This PR adds a new exponent operation to the calculator program. It includes the implementation of a new function named 'exponent' that calculates the result of a base raised to the power of an exponent. Error handling is also added to check for a zero base and a negative exponent, raising a ValueError with an appropriate error message.

Summary of Changes

Please review and merge this PR. Thank you!

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: