Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52404
| References | <cc701481-0ecd-411b-8473-0596b4252949@googlegroups.com> <mailman.490.1376281271.1251.python-list@python.org> <aa30df64-2545-4352-8819-264ba696b48f@googlegroups.com> |
|---|---|
| Date | 2013-08-12 00:51 -0400 |
| Subject | Re: back with more issues |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.492.1376283580.1251.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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