On Thursday, December 7, 2017 at 7:11:18 AM UTC-8, Rhodri James wrote: > Sigh. Please don't do people's homework for them. It doesn't teach > them anything. Now Nick had got 90% of the way there and shown his > working, which is truly excellent, but what he needed was for someone to > hint at how to search through the array, not to be handed a working > example with no explanation.
I teach Python programming from time to time. I've noticed that a few people post quite esoteric solutions to students' homework problems. The unstated intent seems to be to get the student's teacher to quiz the student on their solution. When the student can't explain what the code does, a hard lesson will be learned. Mario Osorio's solution to the homework problem uses a list comprehension, formatted printing, and even a lambda function. If my students are new to Python and I see them using lambdas, you bet I'll be asking questions. All that being said: since Nick Martinez actually showed working code and explained where he was stuck, he doesn't strike me as the kind of student that needs a stealth lesson in the hazards of plagiarism. -- https://mail.python.org/mailman/listinfo/python-list