On Wed, Aug 13, 2014 at 3:24 PM, Chris Kaynor <ckay...@zindagigames.com> wrote: > On Wed, Aug 13, 2014 at 4:39 AM, Eric S. Johansson <e...@harvee.org> wrote: >> >> eliminate captchas, 35+million disabled people would thank you as would >> many more millions of the not-yet-disabled like your future self. > > > And so would the spammers, which is who captchas are trying to block. > > For ease-of-use, most sites only require captchas to be entered once upon > creating the account. Some might also require additional captcha entries > when the account is suspected of spamming. This is ultimately a trade-off of > blocking spammers and allowing accessibility. > > Many of the better captchas also include options for an audio cue in > addition to the default visual one. > > Chris > > -- > https://mail.python.org/mailman/listinfo/python-list > I wrote a sample form page with a simple math problem to solve -- 2 or 3 random small integers to add and put the result in a form field
def produce_expression(): """ return a tuple: expression (str), answer (int) """ num_terms = random.randint(2,3) operands = [] while num_terms: n = random.randint(1,21) operands.append(n) num_terms -= 1 result = sum(operands) string_operands = map(str, operands) expression = " + ".join(string_operands) return expression, result Its not as annoying as captcha and I think it would work with audio browsers. Never tested -- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list