Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
This challenge is related to the Python language. Note that challenges that require the answers to be in a specific language are generally discouraged.
7
votes
Maximum number of PEP8 violations in a single line
123
Yes, more violations than characters!
$ curl -s http://pastebin.com/raw.php?i=RwLJfa0Q | cat
( = = = = = = = = = = = = = = = = = = = = = = = = = …
1
vote
Golf Practice: Python
Total: 121
First attempts:
Problem 1
Problem 2
Problem 3
Problem 4
Problem 5
Problem 6
Problem 7
Problem 8
Problem 9
Problem 10
3
votes
Tips for golfing in Python
If you rely on data (mostly for kolmogorov-complexity problems), use the built-in zip encoding/decoding and store the data in a file (add +1 for the filename):
open('f','rb').read().decode('zip')
I …
7
votes
Tips for golfing in Python
Cut out newlines wherever you can.
At the top-level, it doesn't matter.
a=1
b=9
Takes the same amount of characters as:
a=1;b=9
In the first case you have a newline instead of a ;. But in fun …