Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.082 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.01; 'subject:help': 0.08; 'computed': 0.09; 'percentage': 0.09; '(money': 0.16; 'margins': 0.16; '(the': 0.22; 'header:User-Agent:1': 0.23; 'second': 0.26; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'subject:the': 0.34; 'received:google.com': 0.35; 'vat': 0.36; 'two': 0.37; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'costs': 0.63; 'subject:Need': 0.64; 'price': 0.69; 'moves': 0.84; 'subject:below': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=YLgytD8qiH9SiDlTnFP4k9SaZSOzt2Htvt36BUUyz+Y=; b=yktaZCl7NtghiQwe5A+Lnlju0XOtlJ7KzbsQ0zAKJkMp5eNgICp02ydPnkdfhrFbCy +RUbVszwvQRuy7HwJ/80yDhl1BkdcUxquqTlW7oEEtZFQpm9hARfJp0dKwYkXxTAaa+5 foSw7CeNW4m2PsyDhEYhJMNFFOzZdxKVsY7hwrp9gSCCXeOc8zZUjV4ANdlC1dytX1Wl xGG7O+M8j6rb35BdMbmdMh4O8E2Xqz+NuAt55hinGRD0kA9qD/kxCQkALmOTVAWLJ4WR 2GS7OZMQVk7DFbmdHfTdFTL9XJW8LuZTvLyNYjCGpY99InAecDOWkZFIALumW5ozIOso 6Q+A== X-Received: by 10.14.211.195 with SMTP id w43mr1326376eeo.57.1379147901278; Sat, 14 Sep 2013 01:38:21 -0700 (PDT) Date: Sat, 14 Sep 2013 09:38:19 +0100 From: Jugurtha Hadjar User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Need help to sort out the below code... References: <9f6d4a88-4ae4-4e61-9f73-c074ec3f487f@googlegroups.com> In-Reply-To: <9f6d4a88-4ae4-4e61-9f73-c074ec3f487f@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379147907 news.xs4all.nl 15982 [2001:888:2000:d::a6]:57167 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54157 Hello, mnishpsyched.. You also want the VAT to be computed as a percentage _of_ something, and not hard-coded, so that if you change the price of the pizza, you only have to change one value (pr_pz) instead of two values pr_pz and tx_tz (as the second is computed from the first). You only multiply by coefficients, and these coefficients (the percentage the state charges) is less likely to change than the costs of ingredients or your margins (money moves faster than legislation). -- ~Jugurtha Hadjar,