We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use this checklist to tick off sub-tasks as you complete them following these step-by-step instructions
subtract
__init__.py
Create a new subtract branch from main to work in.
main
Create a new subtract.py file in the pythoncalculator/ directory.
subtract.py
pythoncalculator/
def subtract(x, y) return x - y
Open the pythoncalculator/__init__.py file and add the following line of code:
pythoncalculator/__init__.py
from .subtract import subtract
Create a new test_subtract.py file in the tests/ directory.
test_subtract.py
tests/
Add the following code and save:
from pythoncalculator import subtract def test_subtract(): assert subtract(1, 3) == -2
Once you've created your function and test files and added the line to import your function to pythoncalculator/__init__.py, commit your changes.
Use resolves #{ISSUE_NUMBER_YOU_WERE_ASSIGNED} in your commit message to automatically close the issue when your pull request is merged.
resolves #{ISSUE_NUMBER_YOU_WERE_ASSIGNED}
Then push them up to GitHub
Finally, create a pull request back to the main branch on GitHub and wait for the owner's review.
Reference the issue your pull request refers to with #{ISSUE_NUMBER_YOU_WERE_ASSIGNED} in the description.
#{ISSUE_NUMBER_YOU_WERE_ASSIGNED}
Respond to any requests for correction.
If the issue didn't close automatically, close it yourself. You can also
The text was updated successfully, but these errors were encountered:
bobturneruk
No branches or pull requests
Use this checklist to tick off sub-tasks as you complete them following these step-by-step instructions
subtract
branchsubtract
function__init__.py
Instructions
Create branch
Create a new
subtract
branch frommain
to work in.Add subtraction function
Create a new
subtract.py
file in thepythoncalculator/
directory.Open the
pythoncalculator/__init__.py
file and add the following line of code:Add subtraction test
Create a new
test_subtract.py
file in thetests/
directory.Add the following code and save:
Commit your changes and push to GitHub
Once you've created your function and test files and added the line to import your function to
pythoncalculator/__init__.py
, commit your changes.Use
resolves #{ISSUE_NUMBER_YOU_WERE_ASSIGNED}
in your commit message to automatically close the issue when your pull request is merged.Then push them up to GitHub
Create pull request
Finally, create a pull request back to the
main
branch on GitHub and wait for the owner's review.Reference the issue your pull request refers to with
#{ISSUE_NUMBER_YOU_WERE_ASSIGNED}
in the description.Respond to any requests for correction.
Close issue
If the issue didn't close automatically, close it yourself. You can also
The text was updated successfully, but these errors were encountered: