Re: [Tutor] Learn Python The Hard Way, Ex19-3

2012-02-14 Thread amt
Hello! I managed in the end to have more than 10 ways of doing it, moving now to Exercise 20. Thank you so much for helping me out every time. Regards, amt ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

Re: [Tutor] Learn Python The Hard Way, Ex19-3

2012-02-11 Thread Alan Gauld
On 11/02/12 22:26, amt wrote: Write at least one more function of your own design, and run it 10 different ways. Put it in a dictionary and call it by name... Put it in a list of functions and call it as part of a loop. Create a lambda with it as expression and then call the lambda Just 3 m

Re: [Tutor] Learn Python The Hard Way, Ex19-3

2012-02-11 Thread Brian van den Broek
On 12 Feb 2012 00:29, "amt" <0101...@gmail.com> wrote: > > Hello! I'm currently stuck at the Extra Credit 3 from LPTHW. > > Link to the actual exercise: http://learnpythonthehardway.org/book/ex19.html > The exercise: > Write at least one more function of your own design, and run it 10 > different w

Re: [Tutor] Learn Python The Hard Way, Ex19-3

2012-02-11 Thread Alan Gauld
On 11/02/12 22:26, amt wrote: Write at least one more function of your own design, > and run it 10 different ways. It's hard to know without reading the book what the author has in mind but I'll add yet another option to the mix. Create a new function that takes your function as an argument an

Re: [Tutor] Learn Python The Hard Way, Ex19-3

2012-02-11 Thread Dave Angel
On 02/11/2012 05:26 PM, amt wrote: Hello! I'm currently stuck at the Extra Credit 3 from LPTHW. Link to the actual exercise:http://learnpythonthehardway.org/book/ex19.html The exercise: Write at least one more function of your own design, and run it 10 different ways. Code from the book: def c

[Tutor] Learn Python The Hard Way, Ex19-3

2012-02-11 Thread amt
Hello! I'm currently stuck at the Extra Credit 3 from LPTHW. Link to the actual exercise:http://learnpythonthehardway.org/book/ex19.html The exercise: Write at least one more function of your own design, and run it 10 different ways. Code from the book: def cheese_and_crackers(cheese_count, boxe