Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40822
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.mixmin.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!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 | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.044 |
| X-Spam-Evidence | '*H*': 0.91; '*S*': 0.00; 'output': 0.04; 'converts': 0.07; 'subject:help': 0.07; 'python': 0.09; 'subject:python': 0.11; 'assignment.': 0.16; 'between.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'help;': 0.16; 'program?': 0.16; 'wrote:': 0.17; 'mathematical': 0.17; 'code,': 0.18; 'input': 0.18; '(b)': 0.22; 'assignment': 0.22; 'parse': 0.22; 'help.': 0.22; 'programming': 0.23; 'task': 0.23; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'first,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'actual': 0.28; 'url:mailman': 0.29; 'convert': 0.29; 'this.': 0.29; "i'm": 0.29; "we're": 0.30; 'fri,': 0.30; 'function': 0.30; 'stuff': 0.30; 'code': 0.31; 'implement': 0.32; 'url:python': 0.32; 'url:listinfo': 0.32; '(a)': 0.33; 'idle': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; '(c)': 0.33; 'tutorial': 0.33; 'that,': 0.34; 'received:google.com': 0.34; 'list': 0.35; 'really': 0.36; 'but': 0.36; 'url:org': 0.36; 'others.': 0.36; 'test': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'some': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'easily': 0.39; 'help': 0.40; 'url:mail': 0.40; 'think': 0.40; 'your': 0.60; 'lost': 0.60; 'day,': 0.60; "you've": 0.61; 'subject:Need': 0.61; 'solve': 0.62; 'day.': 0.63; 'more': 0.63; 'charset:windows-1252': 0.65; '2013': 0.84; '7:25': 0.84; 'confusing': 0.84; 'cups': 0.84; 'start.': 0.84; 'together,': 0.84; 'url:tutorial': 0.93; 'girl,': 0.95 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=n8MHMa6sCuYxgaAdKQ89hOKX7Zyd3w5J8EEJHxu6EVE=; b=DBBkoZ6m6lzhYmZcrl3jLT/WIXVD/LqwM5u/ATnxgMbO1zi84aeAzgrtPBUDpOTZcG weeJiqWrB48/PJwBmGGMv5Gn0lPTLKQYFwOGA9STNIkdoU92TY9d5uhUy1bGX2qb9jnR hQClMUfXaZ2coYuklojj7D+x09F2MQLFJyvdSCCpellrhp+orOkrWwW/AUBlGgzeKOmR oN8LS8cQXwHzKNOQeaS6MHGH27/lKwu9Pe23lQ6dRNrPMRllquiPxAo2hBqsVtyMWAVq IqAdKPTFV94poIKtsz7a1FeAEUf+8spb5BIcjotdRoFWM89GyFPWjOrptvvuElq/b8MQ G5pw== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.37.109 with SMTP id x13mr12014436vdj.10.1362688826395; Thu, 07 Mar 2013 12:40:26 -0800 (PST) |
| In-Reply-To | <891bd56d-5821-4268-8fa2-ba54e3a08d22@googlegroups.com> |
| References | <891bd56d-5821-4268-8fa2-ba54e3a08d22@googlegroups.com> |
| Date | Fri, 8 Mar 2013 07:40:26 +1100 |
| Subject | Re: Need help deriving a convertion function on python |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | quoted-printable |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3054.1362688829.2939.python-list@python.org> (permalink) |
| Lines | 42 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1362688829 news.xs4all.nl 6944 [2001:888:2000:d::a6]:55473 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:40822 |
Show key headers only | View raw
On Fri, Mar 8, 2013 at 7:25 AM, <johnnyukpo@gmail.com> wrote: > Good day, > > I have a computer programming assignment. I am completely lost and i need some help. > > These are the questions that are confusing me > (a) Write a function which converts from gallons to cups2 > (b) Now we’d like to be able to convert from cups to milliliters, since metric measurements > are easier to convert between. Implement a function which does this. > (c) We’d also like to be able to easily convert gallons into milliliters, so implement a > function which does this Here's a good place to start: http://docs.python.org/3/tutorial/ After that, think about your task as three sub-tasks: 1) Get and parse input - what does your human need to tell your program? 2) Processing - the actual conversion, the meaty mathematical stuff 3) Produce output - what does your program report to your human? Then start work on any one of the three. If you get stuck, move on to one of the others. Once you've put some code together, test it, play with it, and refine it. And if you get stuck, THEN come and ask for help; but first, try to solve the problem yourself. The purpose of this assignment is to help you learn to write code, so we're not going to simply give you the code :) By the way, you may find the python-tutor list more suitable, if you feel your questions are particularly basic: http://mail.python.org/mailman/listinfo/tutor The Python tutorial really is a very good place to start. I'm seriously considering giving it to a ten-year-old girl, granting her just IDLE and a web browser, and seeing what she can accomplish in a day. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Need help deriving a convertion function on python johnnyukpo@gmail.com - 2013-03-07 12:25 -0800 Re: Need help deriving a convertion function on python Chris Angelico <rosuav@gmail.com> - 2013-03-08 07:40 +1100 Re: Need help deriving a convertion function on python Rick Johnson <rantingrickjohnson@gmail.com> - 2013-03-07 14:15 -0800 Re: Need help deriving a convertion function on python Dave Angel <davea@davea.name> - 2013-03-07 19:07 -0500
csiph-web