9 Feb 23:49
Re: Character Buffer Object Error OOPS
bob gailer <bgailer <at> gmail.com>
2012-02-09 22:49:33 GMT
2012-02-09 22:49:33 GMT
On 2/8/2012 11:04 PM, Michael Lewis wrote: > Thanks Bob, My Bad - I did not examine all your code - I broke my own rule. Your code is still a little buggy. > The below code is what I came up with without using your suggestion. > On a scale, how novice is mine compared to what you offered? I am > curious because I want to know if I should have come up with your > solution instead of what I did come up with. Since you are studying Python you do well to apply what you learn. The first objective is to get something that works. As you learn more you then apply new techniques. When you have learned conditional expressions, list comprehensions and generator expressions then you will be able to write the code I did. That code is just an alternative to what you wrote, "flattening it" as it were. [snip] -- -- Bob Gailer 919-636-4239 Chapel Hill NC _______________________________________________ Tutor maillist - Tutor <at> python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
RSS Feed