Skip to main content

Timeline for Tips for golfing in Python

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Apr 15, 2021 at 20:38 comment added Ryan Laursen You must be forgetting the comma or possibly using Python 2. Here is a SO question about it: stackoverflow.com/questions/43190992/understanding-x-lst
Apr 15, 2021 at 15:21 comment added HK boy sorry but I got "SyntaxError: starred assignment target must be in a list or tuple" when I try it.
Apr 13, 2021 at 20:45 comment added Ryan Laursen the most concise way to do this is like this, saving one character:: *a,=map(f,a) *b,=range(x,y)
Mar 20, 2021 at 18:04 history edited HK boy CC BY-SA 4.0
small update
Mar 20, 2021 at 17:56 history edited HK boy CC BY-SA 4.0
update
Mar 16, 2021 at 16:52 history answered HK boy CC BY-SA 4.0