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: 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: References: Date: Mon, 12 Aug 2013 00:51:28 -0400 Subject: Re: back with more issues From: Joel Goldstick To: Kris Mesenbrink Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Mon, Aug 12, 2013 at 12:35 AM, Kris Mesenbrink 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 th= e battle gets called. i would then use the variables in battle to figure ou= t who would win. is there a better way to store these variables in the func= tions? i also read somewhere about classes but that makes even less sense t= o 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. --=20 Joel Goldstick http://joelgoldstick.com