Re: [Tutor] Fw: Issues With Map Reduce

2011-10-03 Thread Alan Gauld
On 26/09/11 18:00, StevenJ Hennessy wrote: Hello, I am currently struggling with a homework assignment. I need to use Map reduce to create a dictionary of palendromes -> number of palendrome for example: the string "bab bab bab cab cac dad" would output: bab 3 cab 1 I assume this should be cac?

Re: [Tutor] Fw: Issues With Map Reduce

2011-10-03 Thread Wayne Werner
On Mon, Sep 26, 2011 at 12:00 PM, StevenJ Hennessy < stevenhenne...@sbcglobal.net> wrote: > > > Am I on the right track? > Of course we don't do homework here, and we're happy to give pointers in the right direction. I don't see anything completely wrong with your code, and it sounds like you'll

[Tutor] Fw: Issues With Map Reduce

2011-10-03 Thread StevenJ Hennessy
Hello,     I am currently struggling with a homework assignment. I need to use Map reduce to create a dictionary of palendromes -> number of palendrome for example: the string "bab bab bab cab cac dad" would output: bab 3 cab 1 dad 1 here is what I have so far def palendrome(string):    pal