Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.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.075 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'directions': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Help': 0.11; '6:52': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'pace': 0.19; 'header:User- Agent:1': 0.23; 'question': 0.24; 'first,': 0.26; 'header:X -Complaints-To:1': 0.27; 'idea': 0.28; 'correct': 0.29; 'leave': 0.29; 'asked': 0.31; 'code': 0.31; 'subject:some': 0.31; 'run': 0.32; 'problem': 0.35; 'subject:with': 0.35; 'advice': 0.35; 'problem.': 0.35; 'test': 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; "i'll": 0.36; 'two': 0.37; 'depends': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'easy': 0.60; 'eventually': 0.60; 'solve': 0.60; "you'll": 0.62; 'email addr:gmail.com': 0.63; 'more': 0.64; 'here': 0.66; 'home': 0.69; 'now:': 0.74; 'fast!': 0.84; 'mile': 0.84; 'seriously,': 0.84; 'tempo': 0.84; 'mistake': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Neil Cerutti Subject: Re: Help with some python homework... Date: Fri, 31 Jan 2014 13:51:34 +0000 (UTC) Organization: Norwich University References: <02c4c69d-71f1-4a01-86df-d4d5a7ffb3f5@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: jackman.norwich.edu User-Agent: slrn/0.9.9p1/mm/ao (Win32) 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391176319 news.xs4all.nl 2948 [2001:888:2000:d::a6]:37379 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65118 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. > > **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?** That depends on the directions in which you run. Also, you are fast! 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: 1. A correct answer to test your program's answer with. 2. A general idea of how to solve the problem. 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. -- Neil Cerutti