This PR adds a new operation to the calculator program that computes the exponent of two numbers (A^B). The existing calculator function in calculator.py has been modified to include the new operation.
Summary of Changes
Added a new function named 'exponent' in calculator.py that takes two parameters, 'x' and 'y', and returns the result of 'x' raised to the power of 'y'.
Modified the 'calculator' function in calculator.py to include a new option in the menu for the exponent operation.
Handled the user's choice for the exponent operation in the 'calculator' function by calling the 'exponent' function with the two numbers entered by the user and printing the result.
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
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR adds a new operation to the calculator program that computes the exponent of two numbers (A^B). The existing calculator function in calculator.py has been modified to include the new operation.
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:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.