Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!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.100 X-Spam-Evidence: '*H*': 0.80; '*S*': 0.00; 'directions': 0.09; 'cc:addr:python-list': 0.11; 'subject:Help': 0.11; 'jan': 0.12; 'wrote': 0.14; '6:52': 0.16; 'anyways,': 0.16; 'complicating': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'pace': 0.19; 'received:10.0.1': 0.19; 'cc:addr:python.org': 0.22; '31,': 0.24; 'guys': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'first,': 0.26; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'correct': 0.29; 'leave': 0.29; 'am,': 0.29; 'url:mailman': 0.30; 'asked': 0.31; 'code': 0.31; 'subject:some': 0.31; 'run': 0.32; 'another': 0.32; 'url:python': 0.33; 'problem': 0.35; 'subject:with': 0.35; 'advice': 0.35; 'problem.': 0.35; 'test': 0.35; 'but': 0.35; 'done': 0.36; 'url:listinfo': 0.36; "i'll": 0.36; 'received:10.0': 0.36; 'url:org': 0.36; 'seconds': 0.37; 'two': 0.37; 'received:10': 0.37; 'depends': 0.38; 'needed': 0.38; 'url:mail': 0.40; 'how': 0.40; 'easy': 0.60; 'eventually': 0.60; 'solve': 0.60; "you'll": 0.62; 'header:Message-Id:1': 0.63; 'email addr:gmail.com': 0.63; 'more': 0.64; 'charset:windows-1252': 0.65; 'here': 0.66; 'home': 0.69; 'now:': 0.74; '2014,': 0.84; 'fast!': 0.84; 'mile': 0.84; 'seriously,': 0.84; 'tempo': 0.84; 'mistake': 0.91 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020208.52EC3AD2.00E2,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.0 cv=Pb8hcFdd c=1 sm=1 a=MB85R812cvcrhCHz/P2OVA==:17 a=lYmbDxrgSswA:10 a=G8Uczd0VNMoA:10 a=N659UExz7-8A:10 a=kviXuzpPAAAA:8 a=IFej2vUWUj8A:10 a=pGLkceISAAAA:8 a=8AHkEIZyAAAA:8 a=obuVuTkmg7qUyhr9qSkA:9 a=pILNOxqGKmIA:10 a=MSl-tDqOz04A:10 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: Help with some python homework... From: Scott W Dunning In-Reply-To: Date: Fri, 31 Jan 2014 17:07:45 -0700 Content-Transfer-Encoding: quoted-printable References: <02c4c69d-71f1-4a01-86df-d4d5a7ffb3f5@googlegroups.com> To: Neil Cerutti X-Mailer: Apple Mail (2.1827) X-Mailman-Approved-At: Sat, 01 Feb 2014 06:35:37 +0100 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: 40 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391232938 news.xs4all.nl 2965 [2001:888:2000:d::a6]:43313 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65193 You guys are awesome! I think I was over complicating things for one. = Plus I was looking at some code I wrote for another problem that asked = to put in the number of seconds to calculate the problem and I didn=92t = need some of the things I added to this problem. Anyways, you guys have = given me a lot of help and I think I can get it now. I=92ll post what I = got when I=92m done so you guys can help with unnecessary code if needed = or just to see how you helped. =20 On Jan 31, 2014, at 6:51 AM, Neil Cerutti wrote: > On 2014-01-31, scottwd80@gmail.com wrote: >> Here is the question that was asked and below that I'll paste >> the code I have so far. >>=20 >> **If I leave my house at 6:52 am and run 1 mile at an easy pace >> (8:15 per mile), then 3 miles at tempo (7:12 per mile) and 1 >> mile at easy pace again, what time do I get home for >> breakfast?** >=20 > That depends on the directions in which you run. Also, you are > fast! >=20 > But seriously, my advice is to find the answer the old fashioned > way first, with pencil and paper. Then you'll have two things you > don't now: >=20 > 1. A correct answer to test your program's answer with. > 2. A general idea of how to solve the problem. >=20 > It's often a mistake to start writing code. Eventually you'll be > able to go directly from problem to code more often, but it will > take practice. >=20 > --=20 > Neil Cerutti >=20 > --=20 > https://mail.python.org/mailman/listinfo/python-list