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


Groups > comp.lang.python > #106729

Re: past exam paper help!

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: past exam paper help!
Date Sat, 9 Apr 2016 08:11:53 -0600
Lines 17
Message-ID <mailman.117.1460211154.2253.python-list@python.org> (permalink)
References <a543defc-7b29-4eeb-8ab7-6a4f46aeae7c@googlegroups.com> <48c9d6c4-e4e4-4fd2-a962-5d50c5533c92@googlegroups.com> <CALwzidk11gpMCTpT5H4JbZNT_Xfz+Qez1KFqvc4QVhgn2O6=Tw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de qdCvQ8k0taBrjWDvwLnX4wVLljFLy8uF7SeMb23E014w==
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; 'subject:help': 0.07; 'specific.': 0.09; 'def': 0.13; '2016': 0.16; 'mug': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'shape,': 0.16; 'wrote:': 0.16; 'shape': 0.18; 'python?': 0.18; 'am,': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'skip:_ 10': 0.32; 'class': 0.33; 'open': 0.33; 'received:google.com': 0.35; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'skip:v 20': 0.38; 'received:209': 0.38; 'to:addr:python.org': 0.40; "you'll": 0.61; 'saturday,': 0.63; 'more': 0.63; 'to:name:python': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ObmgiIyM/64qg8euBkX92EugNbZa2r32KbrPcImpuXI=; b=iKYF04rgRR2wkdqXFkRgNJHX/Frxe616qPUvBjGngcefR1R9JSxY/4mHRWTXtG1Y5+ dKdhpdvOYFtisD7IMN4cmS2Tey+03Mvrz0dEeoD2tYXUsK5qt0MpfbKJC4h4H/RXJOE3 7SFy4a6WDDi2u92WlFX+dlmJ6/5Ktl8qST4gy5WTBnLbGQsf6ezF7dr9mobKlye9xPYh asINXQj+to8fLPXlGowqblU+8mzuddXnxi9cw3xn3qdBrrODjWFEFGqyNw7Bs456HuQK BTgUv9/G6vzhS9PU8w8tpcDcxr3zZB8TM8cJ/EfZQHvzh7D2R7oGuFbdhWEtBJyyY8J6 4fhw==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ObmgiIyM/64qg8euBkX92EugNbZa2r32KbrPcImpuXI=; b=R826FCXzQo9Dy/HQ7HmTmy4RK+PsFTkFb/ylL6pyUCgU7Bd3WWFqG29Lcz1te3+5r1 bKZz9WdY9Nwm1y1c/K4WKdh0g9Q7zkkXgwiupMJHu/Kgv+8z2JkEgMavfSWwC2WDyYGg vgDEH3F0jT8/CzfOMQXu8nhKObP9qVWx8iboCLU8W++g1WQufblUy0zyd2a3IwRfr9NL wS02yHjkUgh8CrCns68hP4h4NCblGp2jIubAYMSAVsrEobDtsll8VRm1wEWfgggX4k0Y r8Ff75s5gg6NAFALTAoD+fkQ3JO5jA1A0cAgYFvOJDd2KrAzRL303fwYjTDivlW5oKqe mY9w==
X-Gm-Message-State AD7BkJLVsx4WnaRmeBLfdTt046T6vX7C26AEXN4pK5XUDvbiYZ0Cg5gJRwxVU4tKtxiM9E0kNaQ4sSL8aBoRYw==
X-Received by 10.107.19.157 with SMTP id 29mr16678168iot.11.1460211152473; Sat, 09 Apr 2016 07:12:32 -0700 (PDT)
In-Reply-To <48c9d6c4-e4e4-4fd2-a962-5d50c5533c92@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
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>
X-Mailman-Original-Message-ID <CALwzidk11gpMCTpT5H4JbZNT_Xfz+Qez1KFqvc4QVhgn2O6=Tw@mail.gmail.com>
X-Mailman-Original-References <a543defc-7b29-4eeb-8ab7-6a4f46aeae7c@googlegroups.com> <48c9d6c4-e4e4-4fd2-a962-5d50c5533c92@googlegroups.com>
Xref csiph.com comp.lang.python:106729

Show key headers only | View raw


On Sat, Apr 9, 2016 at 7:49 AM, Joseph Caulfield
<josephcaulfield1996@gmail.com> wrote:
> On Saturday, April 9, 2016 at 2:48:16 PM UTC+1, Joseph Caulfield wrote:
>> how would I model a mug  a cylindrical vessel with an open top in python? thansk :)
>
> *as a cylindrical vessel.

class Vessel:

    def __init__(self, shape, open_top=False):
        self.shape = shape
        self.open_top = open_top

mug = Vessel('cylindrical', open_top=True)


If that's not what you meant, then you'll have to be more specific.

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


Thread

past exam paper help! Joseph Caulfield <josephcaulfield1996@gmail.com> - 2016-04-09 06:48 -0700
  Re: past exam paper help! Joseph Caulfield <josephcaulfield1996@gmail.com> - 2016-04-09 06:49 -0700
    Re: past exam paper help! Ian Kelly <ian.g.kelly@gmail.com> - 2016-04-09 08:11 -0600
  Re: past exam paper help! Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-04-09 15:03 -0400

csiph-web