This PR adds a new exponent operation to the calculator program in the calculator.py file. The exponent operation allows users to calculate the result of raising a base number to a given exponent. The PR also includes error handling to check for invalid inputs and updates the README.md file to provide information about the new operation.
Summary of Changes
Added a new function named 'exponent' in the calculator.py file to perform the exponent operation.
Integrated the exponent operation into the existing 'calculator' function.
Added error handling to check for invalid inputs in the exponent operation.
Updated the README.md file to include information about the new exponent operation.
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/add-exponent-operation_3
🎉 Latest improvements to Sweep:
Use Sweep Map to break large issues into smaller sub-issues, perfect for large tasks like "Sweep (map): migrate from React class components to function components"
Getting Sweep to format before committing! Check out Sweep Sandbox Configs to set it up.
We released a demo of our chunker, where you can find the corresponding blog and code.
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This PR adds a new exponent operation to the calculator program in the calculator.py file. The exponent operation allows users to calculate the result of raising a base number to a given exponent. The PR also includes error handling to check for invalid inputs and updates the README.md file to provide information about the new operation.
Summary of Changes
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: