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 203088

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.

2 votes
1 answer
119 views

Weighted draw/raffle (biased towards undrawn)

I'm a python newb and I come from a background of more traditional languages, so I wrote it using generic constructs borrowed from what I'm familiar with (e.g. a prolific use of index-based loops). …
martixy's user avatar
  • 253
6 votes
3 answers
1k views

Prime sieve generator

I wrote a simple prime sieve in Python. But it ended up looking... ugly. I included a few of the most basic optimizations. …
martixy's user avatar
  • 253
3 votes
1 answer
326 views

Deduping files using hardlinks

However I took this as an opportunity to bodge something in python, a language I normally do not use, but have always wanted to pick up at least a little bit. … This is maybe the third thing I've made that's more complex than 5 lines of code in python. …
martixy's user avatar
  • 253