Re: [Tutor] Associate functinos with Dictionary/Class Usage

2005-04-09 Thread Shane Liebling
Although I was not the questioner, I must admit this was a brief but efficient answer. Reminds me to try something like the last part out some time... -Shane On Apr 7, 2005 4:40 PM, Danny Yoo <[EMAIL PROTECTED]> wrote: > > > On Thu, 7 Apr 2005, Luke Jordan wrote: > > > I am looking for a litt

Re: [Tutor] Associate functinos with Dictionary/Class Usage

2005-04-08 Thread Luke Jordan
Yes, Danny - that makes sense. I was getting hung up how to handle the parens in this part dict['some'](thing) all clear now. :-) On Apr 7, 2005 4:40 PM, Danny Yoo <[EMAIL PROTECTED]> wrote: > > > On Thu, 7 Apr 2005, Luke Jordan wrote: > > > I am looking for a little clarification of how exa

Re: [Tutor] Associate functinos with Dictionary/Class Usage

2005-04-07 Thread Danny Yoo
On Thu, 7 Apr 2005, Luke Jordan wrote: > I am looking for a little clarification of how exactly this would work. > > 1. How do I associate a function to a dict key? Hi Luke, We're probably already familiar of values like numbers and strings, and how to give them names with variables: ##

[Tutor] Associate functinos with Dictionary/Class Usage

2005-04-07 Thread Luke Jordan
Hi! My questions arose from reading the "Help with Classes" email that's been on this list for the past couple of days. I'm also writing a text game, but mine is puzzle not adventure. Anyway, someone mentioned that you can key words to a dictionary to have user input run functions. I am looking