Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'true,': 0.05; 'false,': 0.09; 'bool': 0.16; 'here..': 0.16; 'all.': 0.16; 'sender:addr:gmail.com': 0.17; 'users.': 0.18; 'all,': 0.19; 'seems': 0.21; 'initial': 0.24; 'question': 0.24; 'values': 0.27; 'message-id:@mail.gmail.com': 0.30; 'anyone': 0.31; 'quite': 0.32; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'false': 0.36; 'thanks': 0.36; 'should': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'skip:& 20': 0.39; 'to:addr:python.org': 0.39; 'total': 0.65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=o0MzSd6Cjqp7McF5WP5sXVoYnZbirkXZVBTmfc0srUY=; b=YVKkaNJ9jTQQYJWBh6FL89Hs6ONDISB5tBlqJD5vnv5S87pbwK7YGV58cCEHDwksR3 pLWx/7DDHxabzWJtMgoHVcCtAc66ua41H+JiRK622jcGYnOR0DcXv51+FNOeJTVKO/0D 47AcaDdwfLUcFRvtcb/t9Hqva5Kmij7oqs/kHn8iWj/1C2Y+xOJ0DgqsCgTI9IRORu2s fT0vtEqxUOqQIrz7Y2E9ICcG8l+376+Yf1fTtUtWqby89z9zqHCCyC8miW/0z+IqYhcr C7SJF7HL53cYir7EyEJzALdoW+Rkx0N7DZhcO8CP5KAGB/dVmIVy300Lrp7NQmDUl65V Qcpg== X-Received: by 10.60.132.40 with SMTP id or8mr5223110oeb.65.1372801451496; Tue, 02 Jul 2013 14:44:11 -0700 (PDT) MIME-Version: 1.0 Sender: kasturisurya@gmail.com From: Surya Kasturi Date: Tue, 2 Jul 2013 23:43:51 +0200 X-Google-Sender-Auth: 1hchBheHAaUhur8HA0pbN8EpQfk Subject: how to calculate reputation To: python-list@python.org Content-Type: multipart/alternative; boundary=047d7b471e5add1f8104e08e3ea4 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372801460 news.xs4all.nl 15970 [2001:888:2000:d::a6]:47695 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49657 --047d7b471e5add1f8104e08e3ea4 Content-Type: text/plain; charset=UTF-8 Hi all, this seems to be quite stupid question but I am "confused".. We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice. I have a list of bool values True, False (True for up vote, False for down-vote).. submitted by users. [True, False, False, True....] Now to calculate the total reputation should I take True = +1, False=0 [or] True = +1, False=-1 ?? for adding all. I am missing something here.. and that's clear.. anyone please help me on it? Thanks --047d7b471e5add1f8104e08e3ea4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all, this seems to be quite stupid question but I am &q= uot;confused"..
We set the initial value to 0, +1 for up-vote and = -1 for down-vote! nice.

I have a l= ist of bool values True, False (True for up vote, False for down-vote).. su= bmitted by users.

[True, False, False, True....]

Now to calculate the total reputation=C2=A0
<= div style>
should I take True =3D +1, False=3D0 =C2=A0[= or] True =3D +1, False=3D-1 ?? for adding all.

I am missing something here.. and that'= s clear.. anyone please help me on it?

Thanks



--047d7b471e5add1f8104e08e3ea4--