issue for error line of multiples-of-3-and-5 #34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
when i used this code :
def sum_of_natural_numbers(start, end):
total = 0
for i in range(start, end):
if i % 3 == 0 and i % 5 == 0:
total += i
return total
print(sum_of_natural_numbers(1, 1000))
the error line was:
This is the sum of numbers multiple of tree and five (15, 30, 45, ...) I need multiples of three and multiples or five (3, 5, 6, 9, 10, 12, 15, 18, ...).
i thought it might be better to be:
This is the sum of numbers ("that are multiples") of ("three") and five (15, 30, 45, ...) I need multiples of three ("or multiples of five") (3, 5, 6, 9, 10, 12, 15, 18, ...).
** i changed the multiple to that are multiples and tree to three and and multiples or five to or multiples of five.
The wording in French statement may be improved too:
https://git.afpy.org/mdk/genepy-exercises/src/branch/main/exercises/multiples-of-3-and-5/wording_fr.md
"si nous listons tous les nombres multiples de 3 et 5 inférieurs à 20"
de 3 ou 5
@Desmond-coder Would you like to make a merge request? And in that case, do you need help?
Thank you @vpoulailleau ! I'd be happy to make a merge request.
I've never created one before, so I'd really appreciate any guidance on the process.
Here is what said ChatGPT (I will comment it afterwise):
Creating a Merge Request on a Forgejo Repository You Don't Own
When you don't own a repository on Forgejo, the typical workflow is based on forking the repository and then creating a Merge Request (called a Pull Request on some other platforms).
1. Fork the repository
2. Clone your fork
3. Add the original repository as an upstream remote
This lets you keep your fork synchronized with the original repository.
Verify your remotes:
Expected output:
4. Create a feature branch
Never work directly on
main(ormaster).5. Make your changes
Edit the files, then stage and commit them.
6. Push the branch to your fork
7. Open a Merge Request
Verify that:
main.fix-typo).8. Fill in the Merge Request
Provide:
9. Respond to review feedback
If reviewers request changes:
The Merge Request is updated automatically.
10. After the Merge Request is merged
Update your local repository:
Optionally, delete the feature branch locally and from your fork.
Keeping your fork up to date
Before starting a new contribution, synchronize your local
mainbranch.Then create a new feature branch:
If you already have write access
If the project has granted you write permission, you can usually skip the fork:
main.For repositories you do not own and do not have write access to, the fork-and-merge-request workflow described above is the standard approach.
@Desmond-coder Are you using Windows, Linux or anything else?
The last paragraph is not applicable, you don't have write access.
BTW, are you comfortable with git? (If you follow the provided commands, it should work well).
Feel free to ask any questions.
Thanks for your help @vpoulailleau !
I'm using Windows.
I'm still learning Git, but I know the basics (clone, commit, push, etc.). I haven't created a Merge Request before, so this will be my first one. I'll give it a try following the instructions, and if I get stuck, I'll ask.
Thanks again!