Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102393
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Ryan Young <ryand.young@menloschool.org> |
| Newsgroups | comp.lang.python |
| Subject | Python Calculator |
| Date | Mon, 1 Feb 2016 11:30:51 -0800 |
| Lines | 8 |
| Message-ID | <mailman.7.1454357507.3032.python-list@python.org> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de KyxmptOgncl2rc9g0Hv1hQ7gIpcDICUgGU8tfTLKbAUA== |
| Return-Path | <ryand.young@menloschool.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.023 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'python,': 0.02; 'received:209.85.223': 0.03; 'subject:Python': 0.05; 'python': 0.10; 'value.': 0.15; 'variables': 0.15; 'calculates': 0.16; 'calculator': 0.16; 'filename:fname piece:50': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'much!': 0.18; 'variable': 0.18; 'java': 0.22; 'order.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'far,': 0.29; 'url:ui': 0.29; 'reset': 0.29; 'ryan': 0.33; 'received:google.com': 0.35; 'problem.': 0.35; 'but': 0.36; 'created': 0.36; 'received:209.85': 0.36; 'to:addr :python-list': 0.36; 'received:209': 0.38; 'thank': 0.38; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'still': 0.40; 'total': 0.62; 'different': 0.63; 'picture': 0.70; 'good!': 0.84; 'url:gstatic': 0.84; 'url:icons': 0.84; 'url:v1': 0.84; 'url:gif': 0.85; 'url:images': 0.85 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=menloschool-org.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type; bh=qaoiN3kENPzP4mNRMVlVdrj3hn/hdHaUjcKI0YgYKvA=; b=qqUWpDqwqFMn3buM05Vp+V7VkGwLmtvw7v8Z6h7CxlxqUUDYxGQTgrPsRE/utVvGfL z/OO1K7RQTnlSpaSz9ARlCXL7azoqntk+SA43bvYNFnAatk4vPasFVpMSu+RAZXoxYSb YFgIBbh2/GF9NMuSTseENXFjP8J7347tuBK1kFxeziFlSdGKdIO8P1YEhH+Y0CjfKF8W z1YvNWgj0hKCNO0IbLNzgdMUQq9y1zNSwCSQnEsQ2ryoyloC9Y3Sv485oQg3R/ZtI11T 3OszzXqVVgzloFIuphMNGPWIHCuROKPGFzQfNxlgO62KIlQbdurl9fPeGpCsQMDh9CkF GFTA== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=qaoiN3kENPzP4mNRMVlVdrj3hn/hdHaUjcKI0YgYKvA=; b=N0TnP3Yr9BMm0rBcbIU2jBMxeNHtxqVFd3Dpjxd2o238pcrOb90A28lLxe67lT87yR FE8XooaRHEY4vqR5zjBwKadXE3+Dw0Sru4hJdDKMGeeGJCPoDVG8hPZHKqTAM6MUXBjy N56nr99MrnZVdcs9D2bpPvKyzThg4CLuA/MQOmKDsF/XMVHCDv7/XFZ4wTg5P1SB999P ojD3ZoOMTniRLCRZsaNh/d3CmLgmUMdXzADksOsClGTmyOr9aMjaGEJLRRay5jM7LYn4 K04xrM3sEc3UCBW8CTj9kxoSbd4XjZY9CuBDHqL48PE2HPKdVoB0DujkW9sG3iniIIE/ kbnQ== |
| X-Gm-Message-State | AG10YORrdCdu71WThH7hWwxKKF+4XjD1ylrIoFDT0oLQT6lSTl3Xuf8NNXwrGKVlzmE1aZd++mSYaV8kUp3xU8ja |
| X-Received | by 10.107.30.144 with SMTP id e138mr23055630ioe.158.1454355051428; Mon, 01 Feb 2016 11:30:51 -0800 (PST) |
| X-Mailman-Approved-At | Mon, 01 Feb 2016 15:11:47 -0500 |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.20+ |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:102393 |
Show key headers only | View raw
I am new to Python but have known Java for a few years now. With python, so far, so good! I created a simple calculator to calculate the total cost of a meal. My variables were tip tax total and order. I am confused about how to put in a new 'order' because when i reset the order variable to a different number it still calculates the original value. I have sent you a picture to help you understand my problem. Thank you so much! Ryan Young
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Python Calculator Ryan Young <ryand.young@menloschool.org> - 2016-02-01 11:30 -0800 Re: Python Calculator Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-02-02 15:43 +1100
csiph-web