Skip to main content

Timeline for Tips for golfing in Python

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Aug 18, 2024 at 0:26 comment added Lucenaposition Sadly, sum doesn't work for lists of strings.
Jan 13, 2016 at 19:19 history edited xnor CC BY-SA 3.0
deleted 118 characters in body
Dec 21, 2015 at 2:08 comment added Tim Pederick Concatenating single digits string slicing is also effective in Python 3, albeit less so: str(l)[2::5] is 12 bytes, versus 19 for ''.join(map(str,l)). An actual situation where this came up (where l was a generator statement, not a list) saved me just one byte... which is still worth it!
May 21, 2015 at 6:10 history edited xnor CC BY-SA 3.0
added 31 characters in body
May 8, 2015 at 0:11 history edited xnor CC BY-SA 3.0
deleted 1 character in body
May 7, 2015 at 23:23 history edited xnor CC BY-SA 3.0
deleted 1 character in body
May 7, 2015 at 23:13 history answered xnor CC BY-SA 3.0