Timeline for Tips for golfing in Python
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 19, 2024 at 0:05 | comment | added | Lucenaposition | You can use 0--n//1. | |
| Jun 17, 2020 at 9:04 | history | edited | CommunityBot | Commonmark migration | |
| Apr 28, 2018 at 5:27 | comment | added | user202729 | round(x) is (x+.5)//1, +1 byte but the latter starts with a (, and if x is a sum consisting of a constant it can be useful. | |
| Dec 23, 2017 at 20:26 | comment | added | fejfo | sometimes you can get away with n//1+1 instead of ceil but it does mean ceil(n)=n+1 but it should work for all non integer values | |
| May 29, 2016 at 9:29 | history | edited | Juan Cortés | CC BY-SA 3.0 | added 28 characters in body |
| Mar 7, 2016 at 17:12 | history | edited | mbomb007 | CC BY-SA 3.0 | deleted 140 characters in body |
| Sep 22, 2015 at 10:03 | history | edited | Juan Cortés | CC BY-SA 3.0 | deleted 1 character in body |
| Sep 21, 2015 at 17:46 | history | answered | Juan Cortés | CC BY-SA 3.0 |