-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
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
challenge: add two integers challenge #54
Conversation
Hi, Abbiihjah 💫 Can you please edit your description? We should customize the name and about parts, and add your function's behavior. Thank you in advance 😄 |
Here is a example for you. These are from my factorial challenge: name: Factorial Calculation Input: The function accepts a single integer n, where n must be a non-negative integer (i.e., n >= 0). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function and tests meet the checklist requirements.
The code passes the formatting checks, Ruff linting checks and has no Pylint errors.
The work is well-organized, clearly written, and demonstrates excellent attention to detail.
Please review my comments and make the changes so I can approve the review.
Great work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All requested changes have been made, and everything looks clear and well-executed. Great work!
I'll proceed to approve the review and close the PR.
All requested changes have been made, and everything looks clear and well-executed. Great work! |
Add Two Integers Challenge
Challenge Description
Given two integers
num1
andnum2
, return thesum
of the two integers.Examples
Input:
num1 = 12, num2 = 5
Output:
17
Explanation: num1 is 12, num2 is 5, and their sum is 12 + 5 = 17, so 17 is returned
Input:
num1 = -10, num2 = 4
Output:
-6
Explanation: num1 + num2 = -6, so -6 is returned.
Constraints
-100 <= num1, num2 <= 100
Helpful Resources
Files
/tests/test_file_name.py
Unit Tests
Function Docstring
Raises:
The Function
Strategy
Do's
Don'ts
Implementation
when it's too restricting.
print
statements anywhere