[Tutor] mod_python, mod_wsgi, web.py, django! What to use?
Hello, This is my first time posting to this board, so please forgive me if I mess something up. So, lets say I want to develop a distributable web application (such as phpBB or Drupal) for Python. What platform (mod_wsgi, mod_python) would I use to reach as many users as possible, and on top of that, which (if any) framework should I use to develop this web application? Also, what are some popular python web applications (forums, cms) that I could take example of? What did they use? What is currently lacking in Python's web application selection? -- Alec Henriksen <[EMAIL PROTECTED]> @ http://alecwh.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Finding the "streaks" in heads/tails list
Hello, I thought it'd be cool to write a program for my logic/critical thinking class, and right now we're evaluating randomness - and the deception of it. A previous post inspired it - coin flipping. So, I've written a program that flips a coin 1000 times and records it all in a dictionary, like this: # 0 = heads, 1 = tails flips = [0,0,0,1,0,1,0,0,1,1,1,1,1,0,0,1,0,1,0,1,0,1] What I want to do, is find out the largest "streak" of digits. In the above example, the streak would be 5, because there are 5 tails flips in a row. I've thought about this, and it seems like regular expressions would be needed. Can someone help/hint? Thanks in advance! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] How trustworthy are pseudo-random numbers?
Hello list, How trustworthy is the "randomness" generated by the random module? I just wrote a script (with the help of some tutors here!) that finds the largest streak in a series of coin flips. My collected data: 100 coin flips = 6-7 streak (usually) 1000 coin flips = 10-12 streak (usually) 1 coin flips = 15-19 streak (usually) etc etc. I'm curious, how much can I trust the randomness? I can't really do 10 coin flips in real life to compare... -- Alec Henriksen <[EMAIL PROTECTED]> @ http://alecwh.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor