Skip to main content
10 events
when toggle format what by license comment
May 30, 2017 at 22:39 history edited user45941 CC BY-SA 3.0
deleted 125 characters in body
May 30, 2017 at 12:29 comment added Rod @ovs hey, you can escape the backtick -> `\`x+1\`` renders to `x+1`
May 30, 2017 at 11:53 comment added ovs lambda n:''.join('x+1'+'n-x'for x in range(n)) for 46 bytes .(replace the ' in the list comprehension with backticks)
May 30, 2017 at 11:10 comment added user45941 @L3viathan That's because Python 2.7 is in wide use. The same cannot be said for 3.6 yet. For example, the Ubuntu Main repo only has 3.5. 2.4 was released in 2004; 3.6 was released 5 months ago. There's a stark difference.
May 30, 2017 at 11:06 comment added L3viathan It is the most recent version. Generator comprehensions, which you use, were added in Python 2.4, Python 2.3 and below don't have that feature, but you still categorize your answer as "Python 2".
May 30, 2017 at 11:04 comment added user45941 @L3viathan It is, but it's a specific version. Python 3.5 and below don't have that string interpolation feature.
May 30, 2017 at 11:04 comment added L3viathan Python 3.6 is not Python 3?
May 30, 2017 at 11:03 comment added user45941 @L3viathan That's a new feature added in 3.6.
May 30, 2017 at 11:02 comment added L3viathan Two bytes more in Python 3: f'{x}{n-~-x}'
May 30, 2017 at 10:43 history answered user45941 CC BY-SA 3.0