Re: [Tutor] problem loading and array from an external file

2010-08-11 Thread Bill Allen
On Wed, Aug 11, 2010 at 10:09 PM, Luke Paireepinart wrote: > Don't pass none. It's an optional parameter. It's accepted practice to not > pass optional parameters. > > Sent from my iPhone > > On Aug 11, 2010, at 6:46 PM, Bill Allen wrote: > > >> > >> You don't actually have to specify the None in

Re: [Tutor] problem loading and array from an external file

2010-08-11 Thread Luke Paireepinart
Don't pass none. It's an optional parameter. It's accepted practice to not pass optional parameters. Sent from my iPhone On Aug 11, 2010, at 6:46 PM, Bill Allen wrote: > On Tue, Aug 10, 2010 at 11:11 AM, Hugo Arts wrote: >> On Tue, Aug 10, 2010 at 9:59 AM, bob gailer wrote: >>> On 8/10/2010

Re: [Tutor] problem loading and array from an external file

2010-08-11 Thread Bill Allen
On Wed, Aug 11, 2010 at 6:59 PM, Alan Gauld wrote: > > > You will find a basic description in the Functional Programming > topic of my tutorial. > > HTH, > > -- > Alan Gauld > Author of the Learn to Program web site > http://www.alan-g.me.uk/ > > > Alan, Awesome website! Thanks! I have a buddy

Re: [Tutor] problem loading and array from an external file

2010-08-11 Thread Alan Gauld
"Bill Allen" wrote second method today on my own. That third method is fascinating. I have not heard of "list comprehension" before. That must be unique Python lingo. What is the principle behind that? Its not unique to Python, Haskell had it first. It is based on mathematical set notati

Re: [Tutor] problem loading and array from an external file

2010-08-11 Thread Bill Allen
On Tue, Aug 10, 2010 at 11:11 AM, Hugo Arts wrote: > On Tue, Aug 10, 2010 at 9:59 AM, bob gailer wrote: >> On 8/10/2010 10:42 AM, Bill Allen wrote: >>> >>> Bob, >>> >>> I was really off on that algorithm and had way over complicated it. >>> I have it working correctly now, but for the sake of tho

Re: [Tutor] problem loading and array from an external file

2010-08-11 Thread Bill Allen
On Tue, Aug 10, 2010 at 9:59 AM, bob gailer wrote: > On 8/10/2010 10:42 AM, Bill Allen wrote: >> >> Bob, >> >> I was really off on that algorithm and had way over complicated it. >> I have it working correctly now, but for the sake of those who saw my >> earlier really botched code, here is the re

Re: [Tutor] problem loading and array from an external file

2010-08-10 Thread Hugo Arts
On Tue, Aug 10, 2010 at 9:59 AM, bob gailer wrote: > On 8/10/2010 10:42 AM, Bill Allen wrote: >> >> Bob, >> >> I was really off on that algorithm and had way over complicated it. >> I have it working correctly now, but for the sake of those who saw my >> earlier really botched code, here is the re

Re: [Tutor] problem loading and array from an external file

2010-08-10 Thread bob gailer
On 8/10/2010 10:42 AM, Bill Allen wrote: Bob, I was really off on that algorithm and had way over complicated it. I have it working correctly now, but for the sake of those who saw my earlier really botched code, here is the resultant code that works. The entire inner loop and intermediate varia

Re: [Tutor] problem loading and array from an external file

2010-08-10 Thread Bill Allen
On Tue, Aug 10, 2010 at 8:21 AM, bob gailer wrote: > On 8/9/2010 11:13 PM, Bill Allen wrote: >> >> Bob, >> >> Thanks for the feedback.  I have been stepping through it in the IDLE >> debugger.  However, it may be that I am letting the debugger get in my >> way as I am new to it also.  You are righ

Re: [Tutor] problem loading and array from an external file

2010-08-10 Thread bob gailer
On 8/9/2010 11:13 PM, Bill Allen wrote: Bob, Thanks for the feedback. I have been stepping through it in the IDLE debugger. However, it may be that I am letting the debugger get in my way as I am new to it also. You are right. I'll get out the old yellow legal pad and step through it by han

Re: [Tutor] problem loading and array from an external file

2010-08-09 Thread bob gailer
On 8/9/2010 10:55 PM, Bill Allen wrote: Hi, my name is Bill and I am completely stuck. I have a little bit of code I am working with for the sole purpose of coding in order to learn Python. In order to learn a programming language, I very often use a little text based map of rooms traversal gam

[Tutor] problem loading and array from an external file

2010-08-09 Thread Bill Allen
Hi, my name is Bill and I am completely stuck. I have a little bit of code I am working with for the sole purpose of coding in order to learn Python. In order to learn a programming language, I very often use a little text based map of rooms traversal game. So far, so good. However, this time I