Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'messages.': 0.04; 'things.': 0.05; 'function,': 0.07; 'item.': 0.07; 'subject:help': 0.07; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'thread': 0.11; 'times,': 0.13; 'code?': 0.16; 'wrote:': 0.17; 'versions': 0.20; 'changes': 0.20; 'question.': 0.20; 'trying': 0.21; 'supposed': 0.21; 'wednesday,': 0.22; 'class.': 0.23; "i've": 0.23; 'idea': 0.24; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'cc:addr:gmail.com': 0.27; 'continuing': 0.27; 'first,': 0.27; 'implemented': 0.27; 'appreciated': 0.27; 'cc:2**2': 0.27; 'post': 0.28; 'factor': 0.29; 'questions.': 0.29; 'second,': 0.29; 'class': 0.29; "i'm": 0.29; 'figure': 0.30; 'stuff': 0.30; 'code': 0.31; 'december': 0.32; 'comments': 0.33; 'correctly.': 0.33; 'anyone': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'list': 0.35; 'doing': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'really': 0.36; 'cc:no real name:2**1': 0.36; 'subject:Please': 0.36; "didn't": 0.36; 'useful': 0.36; 'should': 0.36; 'two': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'delete': 0.38; 'help': 0.40; 'your': 0.60; 'from:no real name:2**0': 0.60; 'most': 0.61; 'you.': 0.61; 'high': 0.61; 'first': 0.61; 'school': 0.61; 'customer': 0.61; 'between': 0.63; 'different': 0.63; 'total': 0.65; '26,': 0.65; 'frustrated': 0.65; 'yourself': 0.77; 'basics.': 0.84; 'subject:you': 0.88; 'kid': 0.91; 'angel': 0.93; 'response,': 0.93 Newsgroups: comp.lang.python Date: Wed, 26 Dec 2012 16:04:24 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.125.254.81; posting-account=Dxm6hQoAAAAHopJagR5YUBCVOKa9jpIP References: <7333128a-6866-4e3c-8436-d5b2397beadc@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 76.125.254.81 MIME-Version: 1.0 Subject: Re: Please help if you can! From: bobflipperdoodle@gmail.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: PYTHON , d@davea.name, bobflipperdoodle@gmail.com 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: , Message-ID: Lines: 62 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356567429 news.xs4all.nl 6869 [2001:888:2000:d::a6]:60791 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35555 First, sorry for starting a new post - I didn't want anyone to have to read= through the whole first one when the questions were completely different := / Second, I honestly have no idea how to answer your questions. I am a sopho= more in high school and I am trying to learn this on my own because my teac= her is not very good at explaining things. =20 i just cant figure out how to get the total when an order is placed without= the customer ordering at least one of each item. I also can't figure out = how to get the shipping to calculate correctly. It is an intro class and we= are using just the basics. Most of what Mitya said is stuff I've never see= n before, although I am very grateful for her response, I am supposed to us= e only what the teacher "taught". Sorry if I frustrated you. I'm just a kid trying to learn. Any help is app= reciated =20 On Wednesday, December 26, 2012 6:49:27 PM UTC-5, Dave Angel wrote: > On 12/26/2012 06:04 PM, wrote: >=20 > > I really hope you can help!=20 >=20 > > =20 >=20 >=20 >=20 > Please use the existing thread when you're continuing to ask the same >=20 > question. >=20 >=20 >=20 > This mailing list has no way to delete messages. >=20 >=20 >=20 > So what changes are there between the two versions of the code? Are >=20 > they marked somehow? >=20 >=20 >=20 > Have you absorbed and implemented the very useful comments made by >=20 > Mitya? Whenever you find yourself doing exactly the same code many >=20 > times, chances are high that you should factor it into a function, or a >=20 > class. >=20 >=20 >=20 >=20 >=20 > --=20 >=20 >=20 >=20 > DaveA