Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Operator precedence problem Date: Mon, 6 Jun 2016 02:24:37 +1000 Lines: 19 Message-ID: References: <816c651a-d0ae-4e23-a5b2-72a8f7398468@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de aYIstP5clvuVnv2dS73IFgUA/HBgQUhYwZIcPWs/MpNg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.094 X-Spam-Evidence: '*H*': 0.82; '*S*': 0.01; 'cc:addr:python-list': 0.09; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; '(the': 0.22; 'subject:problem': 0.22; 'header:In-Reply-To:1': 0.24; 'example': 0.26; 'message- id:@mail.gmail.com': 0.27; 'mathematical': 0.27; 'follows': 0.29; 'url:wikipedia': 0.29; 'url:wiki': 0.30; 'received:google.com': 0.35; 'received:74.125.82': 0.35; 'url:org': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'why': 0.39; 'url:en': 0.39; 'your': 0.60; '.....': 0.76; 'hand': 0.82; '512': 0.84; 'chrisa': 0.84; 'ict': 0.84; 'received:74.125.82.47': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=CWTZXdEXe886zhNMB2jigkdFqu7xh0p8Q3lI7uzwO1g=; b=XM5NFuhBm7GcOPdf7ozb2Kp8WpaY7IPTURU4OAxiU3ApZdJBlxk2ZXep0fhtVpBKIb 0dGpf2jDzzXagMy0XPy/pXQETtPm7ml92LM8nsEIXg2Rfd/Xh7A6AfAVlXpehmU84qnN 37IN9wDmtS6zKHPlVsi/2LSbIK24BYF6jM5HX5XGRQkBJRPiDOjBxPypYnC7bu0P9RGX M+e0NHqcbeJBQWwh8vFrD6UrPUuLsuDG0joUzaDrD/k+hRp8NOku9NtzAupEmb4M5COV LKNI53FAaQsxK6koSx6UoVMR9fwr1E94Pr4hV6aZulIx7lnKFPysaoMR1ij+oD724e+w jbmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=CWTZXdEXe886zhNMB2jigkdFqu7xh0p8Q3lI7uzwO1g=; b=FWGSnyVaDqHZ8XIcNev84x1JzqIE30n1US6HCzw4jX+DRuXpoQMW6xg3CAzX1WQpJU Hz2dXzq/fEstjGzWD5nDu1RHXhB0FbaD0Oq22/Ouyr893FqG+0ksE78zUWuL7EaboJAw 1/Wj4PN5tW4uatyR0NlnUBSePFCr0Oi8WXib6SD1wM9E17pyBDrIbvIphtHAbwV+fqOT IXDl4WzMJ34wvxJuNoP2DDISxApP9+pJa8ocuVroKT5923ysVFItJWYVFj8ZkQRAvI9S ejlFFsTLtASAtJLI5WzGzBetQ2ay3SrY80FKLM4Fx9zYPy4u2Q61Q3uxLnIHsPTyoaKq yx5A== X-Gm-Message-State: ALyK8tJ85uIqLUW6QD/w9baYLcVsnlcBcJLAw9gfGWRl5THXTfarIvUWzIRUJ1K5dh+0E8CR/N5D+JCfN84h6Q== X-Received: by 10.194.110.234 with SMTP id id10mr11787122wjb.30.1465143878168; Sun, 05 Jun 2016 09:24:38 -0700 (PDT) In-Reply-To: <816c651a-d0ae-4e23-a5b2-72a8f7398468@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <816c651a-d0ae-4e23-a5b2-72a8f7398468@googlegroups.com> Xref: csiph.com comp.lang.python:109517 On Sun, Jun 5, 2016 at 4:53 PM, ICT Ezy wrote: >>>> 2 ** 3 ** 2 > Answer is 512 > Why not 64? > Order is right-left or left-right? This example follows the mathematical standard; you start from the "top" (the right hand side), and work your way down. >>> (3**3) % 10 7 >>> (3**3**3) % 10 7 >>> (3**3**3**3) % 10 .... waiting...... https://en.wikipedia.org/wiki/Graham%27s_number ChrisA