Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.101 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.00; 'subject:Python': 0.06; 'variables': 0.07; 'subject:help': 0.08; 'subject:modules': 0.09; 'cc:addr:python-list': 0.11; 'wrote': 0.14; 'backwards': 0.16; 'naming': 0.16; 'remainder': 0.16; 'spit': 0.16; 'variable': 0.18; 'received:10.0.1': 0.19; 'feb': 0.22; '>>>': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'cc:2**0': 0.24; 'second': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'rest': 0.29; 'chris': 0.29; 'you\x92re': 0.31; 'probably': 0.32; 'guess': 0.33; 'subject:with': 0.35; 'but': 0.35; 'there': 0.35; 'really': 0.36; 'received:10.0': 0.36; 'so,': 0.37; 'received:10': 0.37; 'pm,': 0.38; 'sure': 0.39; "you're": 0.61; 'first': 0.61; "you'll": 0.62; 'header:Message-Id:1': 0.63; 'more': 0.64; 'finally': 0.65; 'talking': 0.65; 'to:addr:gmail.com': 0.65; 'charset:windows-1252': 0.65; '(first)': 0.84; '2014,': 0.84; 'about?': 0.84; 'confusing': 0.84; 'divide': 0.84; 'elementary': 0.84; 'it\x92s': 0.84; 'received:68.230.241.137': 0.84; 'received:fed1rmfepi106.cox.net': 0.84 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A02020A.52F6CBA0.0064,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.0 cv=DLtRFVxb c=1 sm=1 a=MB85R812cvcrhCHz/P2OVA==:17 a=IwL8z8QTeS0A:10 a=G8Uczd0VNMoA:10 a=N659UExz7-8A:10 a=kviXuzpPAAAA:8 a=_HE405UYfI8A:10 a=pGLkceISAAAA:8 a=I0GCS2i6XtLQhQ7vdJwA:9 a=pILNOxqGKmIA:10 a=MSl-tDqOz04A:10 a=LlAzbfOhz7XAEZ-D:21 a=JBGlXwC57n2lCXVj:21 a=MB85R812cvcrhCHz/P2OVA==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=swdunning@cox.net Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: Python 2.7.6 help with modules From: Scott W Dunning In-Reply-To: Date: Sat, 8 Feb 2014 17:28:15 -0700 Content-Transfer-Encoding: quoted-printable References: <032F2E23-6983-4710-B087-C1771B66C3EF@cox.net> <635C857D-1F7A-4F95-B3A7-F1A3C69BF137@cox.net> To: Chris Angelico X-Mailer: Apple Mail (2.1827) Cc: "python-list@python.org" 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391910757 news.xs4all.nl 2917 [2001:888:2000:d::a6]:51389 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65707 On Feb 7, 2014, at 11:29 PM, Chris Angelico wrote > Close! But if you print out foo and bar, you'll see that you're naming > them backwards in the second one. The last digit is the remainder > (modulo), the rest is the quotient. So, this is more like what you=92re talking about? >>> first =3D number / 10 >>> second =3D number % 10 >>> last =3D first %10 >>> rest =3D second / 10 I feel stupid saying this and it=92s probably because of the variables = I=92m using but I=92m not sure what the above is doing. For some reason = it=92s confusing me. I used the number 55664, so the variable (first) = is saying take 55664 and / it by 10, then (second) is saying take the = original number divide it by 10 and spit out the remainder? Then from = there (last) is saying take the original number / it by 10 then take = that number and divide it by 10 again and give me the remainder? Then = finally (rest) is saying take the remainder of the original number after = dividing by ten and divide that number by 10? I guess I=92m confused on = the result I=92m looking for. I know I=92m asking very elementary questions so I really do appreciate = not only all of your help but, your patients too!!