Skip to main content
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
Results tagged with
Search options not deleted user 109294

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Use the python tag for all Python related questions. If you believe your question may be even more specific, you can include a version specific tag such as python-3.x.

4 votes
Accepted

Building a Bill of Materials

Some time is lost by having to traverse the p list for each product. For large data, you could preprocess the p list, and create a dict that is keyed by the part, and which provides a list of sub part …
trincot's user avatar
  • 557
4 votes

List of binary numbers: How many positions have a one and zero

I only see a few micro optimisations: Iterate the list instead of a range, so that you don't have to do another lookup with list[i+1] Use more assignment operators, such as &=, |= and >>= It is not n …
trincot's user avatar
  • 557
8 votes
Accepted

Hex dump of a list of 16-bit numbers

Here are some comments on your code: I assume the structure of the input data is to be taken as it is: one long list where only the 1 out of 8 values contribute to the output. c = 0 is defined but n …
trincot's user avatar
  • 557