Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #65977

Re: Simple % question

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.088
X-Spam-Evidence '*H*': 0.84; '*S*': 0.02; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:question': 0.10; 'question.': 0.14; 'finney': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'putting': 0.22; 'header:User-Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; 'wright': 0.31; 'writes:': 0.31; 'url:python': 0.33; 'received:com.au': 0.36; 'subject:Simple': 0.36; 'url:org': 0.36; 'ben': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'url:3': 0.61; 'simple': 0.61; 'buying': 0.65; '8bit%:21': 0.69; 'girlfriend': 0.84; 'received:125': 0.84; 'url:reference': 0.84; 'don\xe2\x80\x99t': 0.91; 'scott': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Simple % question
Date Wed, 12 Feb 2014 12:31:22 +1100
References <63EBCBF1-6C1B-4B8B-9D4A-0567CBDA978A@cox.net>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host vmx15867.hosting24.com.au
X-Public-Key-ID 0xBD41714B
X-Public-Key-Fingerprint 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-gpg.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Cancel-Lock sha1:RAvZAUMkp96GJA0W3AnjAEBDQ6Q=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.6714.1392168694.18130.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1392168694 news.xs4all.nl 2852 [2001:888:2000:d::a6]:47018
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:65977

Show key headers only | View raw


Scott W Dunning <swdunning@cox.net> writes:

> I just have a simple question.  I don’t understand why 1%10  = 1?

Have you read the documentation for that operator?
<URL:http://docs.python.org/3/reference/expressions.html#binary-arithmetic-operations>

The language reference <URL:http://docs.python.org/3/reference/> is the
place to look for official explanations of language features.

-- 
 \       “I met my girlfriend in Macy's; she was buying clothes, and I |
  `\           was putting Slinkies on the escalators.” —Steven Wright |
_o__)                                                                  |
Ben Finney

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Simple % question Ben Finney <ben+python@benfinney.id.au> - 2014-02-12 12:31 +1100

csiph-web