Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102394

Re: Python Calculator

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Zachary Ware <zachary.ware+pylist@gmail.com>
Newsgroups comp.lang.python
Subject Re: Python Calculator
Date Mon, 1 Feb 2016 14:18:15 -0600
Lines 25
Sender zachary.ware@gmail.com
Message-ID <mailman.8.1454357918.3032.python-list@python.org> (permalink)
References <CAE229mhiMEP7FnXN=53rUe=fcpbnCBgMtexM+nSKWUuBe7QKRA@mail.gmail.com>
Reply-To python-list@python.org
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de AMrU/OlpqUdg3IGvEdI0ygPkPvrqBfWQKJI/+SJaKxfQ==
Return-Path <zachary.ware@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'subject:Python': 0.05; 'python)': 0.05; '(especially': 0.07; 'formatting': 0.07; 'through.': 0.09; 'python': 0.10; 'output': 0.13; 'value.': 0.15; 'variables': 0.15; '(rather': 0.16; '2016': 0.16; 'calculates': 0.16; 'calculator': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sfxlen:0': 0.16; 'usenet': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'sender:addr:gmail.com': 0.18; 'much!': 0.18; 'variable': 0.18; 'cc:2**0': 0.20; 'to:name:python- list@python.org': 0.20; 'java': 0.22; 'feb': 0.23; 'tried': 0.24; 'plain': 0.24; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'order.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'towards': 0.28; 'far,': 0.29; 'reset': 0.29; "i'm": 0.30; 'code': 0.30; 'instead,': 0.33; 'ryan': 0.33; 'running': 0.34; 'list': 0.34; 'received:google.com': 0.35; 'text': 0.35; 'problem.': 0.35; 'step': 0.36; 'but': 0.36; 'created': 0.36; 'received:209.85': 0.36; 'mode': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'someone': 0.38; 'thank': 0.38; 'mailing': 0.38; 'sure': 0.39; "didn't": 0.39; 'received:209.85.214': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'group,': 0.60; 'your': 0.60; 'body': 0.61; 'total': 0.62; 'making': 0.62; 'matter': 0.63; 'different': 0.63; 'here': 0.66; 'header:Reply-To:1': 0.67; 'picture': 0.70; 'reply-to:no real name:2**0': 0.71; 'receive': 0.71; 'good!': 0.84; 'reply- to:addr:python.org': 0.84; 'text-based': 0.84; 'participants': 0.85; 'hand,': 0.97
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=CXc+hrcmCN8SSO/+o9I0lK8FSj3RS6aWkqDG3XGLYVM=; b=GnCcui5zS/JvBYsPezPYtXtMns83Xd9fzmCqqvd0NeEpX5KZG8AH7vg+ab0oepuUUo eSn1X0eXePM6ha6/J+4+JDCDQgwSZ3V2YtbvzmpxgVZ5Y64iXS9Z/N/Bzv4rypKVqosk PZT1Ru9b1cTjQtgP4zEpiSznngJUpJWClo5i/aiThlig+++P5vPjBEwJXSBDF90FkC4/ /MzxDo3rOGzJRKUbIvpwE2KSR0CAnb3rE/7DTu4li6zs7klBUU+o29L2KYbs4+CpixIi k0SSTaZOzB6Iv01+jzLhkaCYTR83r4bzt648t940mmN5251Ykq9aG3wlQxbplVHPoKwF cMrw==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:sender:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=CXc+hrcmCN8SSO/+o9I0lK8FSj3RS6aWkqDG3XGLYVM=; b=bIDZUyOKP8vvOFps1sIq9YmaPnARdgUmwrfcDG0prOgPMt+JzT7uGoaxWeyUoU++3J RyqNDvRaG21A05BwWZTgIpGzvDW5LvRR3eEGr1wZ0JTRvYHFxwf/4cF7BeEVFe1QJJWz k5JMzE0g9ghnKemQtaR54o8s3TzUlNaFtQK4raI67Yr0WZNqtZQxvr6u4yxZiN0xioXK kiHIF9M6bmVKHHBS0WTnOuxF0wpSWKey9gT4UZO3rORh4JnbbZ3bR+d07w/pPb765zvq maOt2F2jRCOFb9GW3275/eIcf5N0j19afaUDFzr+NQNT+VKz6ju7coK8ef5vZQp9BKnK QJtg==
X-Gm-Message-State AG10YOQWrfX6wW5lOpd/TH/M9HychiZ+63oc6ZVtu/B58Pi7Ybe6pJ19Qf6ttxC7rel9kQI7mx76ySBVYGcyLA==
X-Received by 10.60.77.1 with SMTP id o1mr20070326oew.16.1454357915306; Mon, 01 Feb 2016 12:18:35 -0800 (PST)
In-Reply-To <CAE229mhiMEP7FnXN=53rUe=fcpbnCBgMtexM+nSKWUuBe7QKRA@mail.gmail.com>
X-Google-Sender-Auth 1hHLhqSW0zXV31gXt4XSWR6fONs
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:102394

Show key headers only | View raw


Hi Ryan,

On Mon, Feb 1, 2016 at 1:30 PM, Ryan Young <ryand.young@menloschool.org> wrote:
> 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!

Your picture didn't come through.  This is a text-based mailing list
gated to a Usenet group, many participants wouldn't receive an
attached picture no matter how you tried to do it.  Instead, just copy
and paste the code you're running and the exact output you get into
the body of a message, making sure that the formatting (especially
indentation, which is significant in Python) is kept by your email
client.  The simplest step towards ensuring good formatting is to send
your message in plain text mode (rather than HTML).

With your code in hand, I'm sure someone here will be able to explain
what's going on :)

Regards,
-- 
Zach

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python Calculator Zachary Ware <zachary.ware+pylist@gmail.com> - 2016-02-01 14:18 -0600

csiph-web