Timeline for answer to Make a new list containing every Nth item in the original list by Santi
Current License: CC BY-SA 2.5
Post Revisions
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 10, 2009 at 14:17 | history | edited | Santi | CC BY-SA 2.5 |
Updated the range limit
|
| Sep 10, 2009 at 7:14 | comment | added | Andre Miller | This doesn't actually pull out every 10th item, it pulls out every item that has a value divisible by 10. In this particular example its the same thing, but it might not be. | |
| Sep 10, 2009 at 6:41 | comment | added | lutz | The upper bound should be 1000, not 10000. Your solution does not include the upper bound of 1000 since range stops at 999. +1 for the link to list-comprehension. | |
| Sep 10, 2009 at 6:37 | history | answered | Santi | CC BY-SA 2.5 |