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


Groups > comp.lang.python > #52404

Re: back with more issues

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.066
X-Spam-Evidence '*H*': 0.87; '*S*': 0.00; 'variables': 0.07; 'cc:addr :python-list': 0.11; 'called.': 0.16; 'kris': 0.16; 'magic': 0.16; 'tutorials.': 0.16; 'wrote:': 0.18; 'later': 0.20; 'aug': 0.22; 'coding': 0.22; 'cc:addr:python.org': 0.22; 'url:moin': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'player': 0.26; 'somewhere': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'correct': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'url:wiki': 0.31; 'figure': 0.32; 'python.org': 0.32; 'stuff': 0.32; 'url:python': 0.33; 'guess': 0.33; 'sense': 0.34; "i'd": 0.34; 'subject:with': 0.35; 'basic': 0.35; 'classes': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'fun,': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'anything': 0.39; 'explain': 0.39; '12,': 0.39; 'sure': 0.39; 'url:mail': 0.40; 'even': 0.60; 'read': 0.60; 'subject:back': 0.60; 'subject:more': 0.64; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'basics.': 0.84; 'joel': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=SADom255c5K/bC1DYTDddQth/bQabzwy78HZWPWk3W8=; b=g4BNoICI9VpHizHQ4pdj67r99BQvAXr5h2wBVFBIer2lPMb9HGzX02hzYJYo9MO0uJ Ha7aKoZqIK6i8dkwE/Wj2I64sOynmS6KOAr8wzbbdbV+sTtWdPMKspRB2v2JvrMXmIMi 1CCVsPzHAn/aPC2LW75W5CHOWBAlayedMzu4IcNvDZKSFBppLqX7a/b/7lPhGtx8K5Ev 00pXmUFDBHXdroFWCdhZmI7TaoGnkQ5j6o+Ke5N52rGcfjdeRChqzymDxjJiYerMz++w jC2KXu5BEUt0Yakb8klL8iNrNL6FkgOWk4N68zJIeQJ7KZ5f9rA5nfYljjZHU1g8B/h3 4OmQ==
MIME-Version 1.0
X-Received by 10.52.166.71 with SMTP id ze7mr8930842vdb.50.1376283088427; Sun, 11 Aug 2013 21:51:28 -0700 (PDT)
In-Reply-To <aa30df64-2545-4352-8819-264ba696b48f@googlegroups.com>
References <cc701481-0ecd-411b-8473-0596b4252949@googlegroups.com> <mailman.490.1376281271.1251.python-list@python.org> <aa30df64-2545-4352-8819-264ba696b48f@googlegroups.com>
Date Mon, 12 Aug 2013 00:51:28 -0400
Subject Re: back with more issues
From Joel Goldstick <joel.goldstick@gmail.com>
To Kris Mesenbrink <krismesenbrink@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc "python-list@python.org" <python-list@python.org>
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.492.1376283580.1251.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1376283580 news.xs4all.nl 15969 [2001:888:2000:d::a6]:34638
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52404

Show key headers only | View raw


On Mon, Aug 12, 2013 at 12:35 AM, Kris Mesenbrink
<krismesenbrink@gmail.com> wrote:
> the idea was to store variables for later use, but you are correct i don't understand functions or if that is even the best way to do it. i guess i'd want to be able to call the HP and ATTACK variables of player for when the battle gets called. i would then use the variables in battle to figure out who would win. is there a better way to store these variables in the functions? i also read somewhere about classes but that makes even less sense to me.
> --
> http://mail.python.org/mailman/listinfo/python-list

I'm not sure where you are learning.  I really recommend you go to
python.org and go the the section on tutorials.
(http://wiki.python.org/moin/BeginnersGuide) They have some really
good stuff there to explain basics.  Coding is fun, but until you
understand basic concepts its really more magic than anything else.
Also, you may get better help in the python-tutor group.

-- 
Joel Goldstick
http://joelgoldstick.com

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


Thread

back with more issues Kris Mesenbrink <krismesenbrink@gmail.com> - 2013-08-11 20:33 -0700
  Re: back with more issues Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-12 00:21 -0400
    Re: back with more issues Kris Mesenbrink <krismesenbrink@gmail.com> - 2013-08-11 21:35 -0700
      Re: back with more issues Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-12 00:51 -0400
  Re: back with more issues Dave Angel <davea@davea.name> - 2013-08-12 05:54 +0000
    Re: back with more issues Kris Mesenbrink <krismesenbrink@gmail.com> - 2013-08-11 23:31 -0700
      Re: back with more issues Kris Mesenbrink <krismesenbrink@gmail.com> - 2013-08-11 23:57 -0700
      Re: back with more issues Dave Angel <davea@davea.name> - 2013-08-12 07:11 +0000
    Re: back with more issues Rotwang <sg552@hotmail.co.uk> - 2013-08-12 15:56 +0100
      Re: back with more issues random832@fastmail.us - 2013-08-12 15:46 -0400
        Re: back with more issues Kris Mesenbrink <krismesenbrink@gmail.com> - 2013-08-12 20:13 -0700
          Re: back with more issues MRAB <python@mrabarnett.plus.com> - 2013-08-13 04:31 +0100
          Re: back with more issues Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-08-12 23:48 -0400
          Re: back with more issues Steven D'Aprano <steve@pearwood.info> - 2013-08-13 06:22 +0000

csiph-web