Skip to main content

All Questions

9 votes
2 answers
310 views

Simulating surname convergence in a population

I was curious a few weeks ago about how surnames come and go (mostly on the go). I wanted to know how quickly surnames die out, because (in my simplified simulation world) once the last person with a ...
Drise's user avatar
  • 255
2 votes
2 answers
5k views

Printing random lines from a file in Python

Is this the most efficient solution or can the performance be improved? Just opens a file and prints random words (lines with newlines stripped out). ...
Samuel Shifterovich's user avatar
2 votes
1 answer
407 views

Python Koans multiplayer Greed Game

I finished the Python Koans because I wanted to practise Python and I completed the extra assignment which is the Greed Game (see the rules here). I think there are no flaws but you never know. <...
dabadaba's user avatar
  • 341