Timeline for Project Euler #1: Multiples of 3 and 5
Current License: CC BY-SA 3.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 22, 2015 at 11:45 | vote | accept | MTHL | ||
| Sep 3, 2015 at 22:42 | comment | added | yoniLavi | I just wanted to disagree with your "breathing room" suggestion for operators. In my opinion, it's often better for readability to group some operations without whitespace, and indeed PEP8 discusses that. | |
| Sep 3, 2015 at 17:59 | comment | added | Shaz | There's also this, where they say they'll explicitly state which set they're working with. However, for this problem it doesn't matter since 0 is never a multiple of 3 or 5. In fact, you could start your range at 3 and call it good based on the same premise - and then we don't have to quibble over how wrong you are to exclude 0 from the natural numbers ;) | |
| Sep 3, 2015 at 16:22 | comment | added | Heslacher | In the same way natural numbers are also frequently defined not to include 0. See also math.stackexchange.com/questions/283/is-0-a-natural-number | |
| Sep 3, 2015 at 16:20 | comment | added | porglezomp | Just a note, since the Natural numbers is very frequently defined to include 0, I don't think the last change is actually an improvement aside from a gain in "efficiency." | |
| Sep 3, 2015 at 13:56 | comment | added | Heslacher | Sorry your edit had been rejected by the community because I edited at the same time. I used your edit now. | |
| S Sep 3, 2015 at 13:53 | history | edited | Heslacher | CC BY-SA 3.0 | added 83 characters in body |
| Sep 3, 2015 at 13:52 | review | Suggested edits | |||
| S Sep 3, 2015 at 13:53 | |||||
| Sep 3, 2015 at 13:52 | comment | added | Heslacher | I don't do python, I just googled about range() and saw on could use the optional start parameter. I will rephrase my answer. | |
| Sep 3, 2015 at 13:49 | comment | added | mkrieger1 | A bit. I guess what's throwing me off is that you've written "a start parameter", as if they were several "start parameters" and you could choose one of them; but you mean the first parameter of the range function, which is called "start". Ideally there would also be a link to the documentation so that one could immediately see the different forms of the function. | |
| Sep 3, 2015 at 13:39 | comment | added | Heslacher | Is it more clear now ? | |
| Sep 3, 2015 at 13:39 | history | edited | Heslacher | CC BY-SA 3.0 | added 24 characters in body |
| Sep 3, 2015 at 13:38 | comment | added | mkrieger1 | I'm not sure I understood your second point, and I'm less sure OP did. For example, you mention a start parameter, but the following code example doesn't contain this word. Maybe you could make more clear what you mean. | |
| Sep 3, 2015 at 13:12 | history | answered | Heslacher | CC BY-SA 3.0 |