You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Currency Exchange] What to do in Task 6( non_exchangable_value)? #2835
All my tasks are done but I don't know what to do in task 6. It says to calculate non exhangable values but I don't know how to calculate that. Can someone please provide me formula for that.
My current code :
If you are requesting support, we will be along shortly to help. (generally within72 hours,often more quickly).
Found a problem with tests, exercises or something else?? 🎉
◦ We'll take a look as soon as we can & identify what work is needed to fix it. (generally within72 hours).
◦ If you'd also like to make a PR to fix the issue, please have a quick look at the Pull Requests doc. We 💙 PRs that follow our Exercism & Track contributing guidelines!
Here because of an obvious (andsmallset of) spelling, grammar, or punctuation issues with one exercise,
concept, or Python document?? 🌟 Please feel free to submit a PR, linking to this issue. 🎉
‼️Please Do Not‼️
❗ Run checks on the whole repo & submit a bunch of PRs.
This creates longer review cycles & exhausts reviewers energy & time.
It may also conflict with ongoing changes from other contributors.
❗ Insert only blank lines, make a closing bracket drop to the next line, change a word
to a synonym without obvious reason, or add trailing space that's not an EOL for the very end of text files.
❗ Introduce arbitrary changes "just to change things" .
...These sorts of things are not considered helpful, and will likely be closed by reviewers.
For anything complicated or ambiguous, let's discuss things -- we will likely welcome a PR from you.
Here to suggest a feature or new exercise??Hooray! Please keep in mind Chesterton's Fence. Thoughtful suggestions will likely result faster & more enthusiastic responses from maintainers.
💛 💙 While you are here... If you decide to help out with other open issues, you have our gratitude 🙌 🙌🏽.
Anything tagged with [help wanted] and without [Claimed] is up for grabs.
Comment on the issue and we will reserve it for you. 🌈 ✨
I think you're almost there -- but got a little confused by the wording of the task (our apologies there!). In task 5, we ask you to calculate what can be exchanged - which you have done.
In task 6, we're asking what the "waste" , "leftover", or "remainder" there might be from task 5. So if you take your formula from task 5:
@generalpy101 -- Please let us know if that helps/answers your question. I will leave this open for another day and close it after unless you have additional questions or issues. Thanks!
Thanks fo your answer @BethanyG . I understood the answer and have no further questions. The fact that modulo can be used to find remainder slipped my mind. Thanks for your answer!!!
Activity
github-actions commentedon Jan 2, 2022
🤖 🤖
Hi! 👋🏽 👋 Welcome to the Exercism Python Repo!
Thank you for opening an issue! 🐍 🌈 ✨
◦ We'll take a look as soon as we can & identify what work is needed to fix it. (generally within 72 hours).
◦ If you'd also like to make a PR to fix the issue, please have a quick look at the Pull Requests doc.
We 💙 PRs that follow our Exercism & Track contributing guidelines!
concept, or Python document?? 🌟
Please feel free to submit a PR, linking to this issue.🎉 ❗ Run checks on the whole repo & submit a bunch of PRs.
This creates longer review cycles & exhausts reviewers energy & time.
It may also conflict with ongoing changes from other contributors.
❗ Insert only blank lines, make a closing bracket drop to the next line, change a word
to a synonym without obvious reason, or add trailing space that's not an EOL for the very end of text files.
❗ Introduce arbitrary changes "just to change things" .
...These sorts of things are not considered helpful, and will likely be closed by reviewers.
Thoughtful suggestions will likely result faster & more enthusiastic responses from maintainers.
💛 💙 While you are here... If you decide to help out with other open issues, you have our gratitude 🙌 🙌🏽.
Anything tagged with
[help wanted]and without[Claimed]is up for grabs.Comment on the issue and we will reserve it for you. 🌈 ✨
BethanyG commentedon Jan 2, 2022
Hi @generalpy101 👋🏽
I think you're almost there -- but got a little confused by the wording of the task (our apologies there!). In
task 5, we ask you to calculate what can be exchanged - which you have done.In
task 6, we're asking what the "waste" , "leftover", or "remainder" there might be fromtask 5. So if you take your formula fromtask 5:And make a small change to use the modulo (see the table on this page in the Python docs) operator:
It should give you the remainder (leftover) instead of the exchangeable value.
BethanyG commentedon Jan 3, 2022
@generalpy101 -- Please let us know if that helps/answers your question. I will leave this open for another day and close it after unless you have additional questions or issues. Thanks!
generalpy101 commentedon Jan 4, 2022
Thanks fo your answer @BethanyG . I understood the answer and have no further questions. The fact that modulo can be used to find remainder slipped my mind. Thanks for your answer!!!