On Wednesday, May 13, 2015 at 11:47:19 AM UTC+5:30, Chris Angelico wrote: > On Wed, May 13, 2015 at 3:56 PM, Rustom Mody wrote: > >> Yep. I'd also use clear function/procedure names to make it more > >> visible, and probably tie this in with loops to show how you can print > >> more than one thing but can only return one. (Generators are a more > >> advanced topic.) > > > > [Structure of] Library function: basic > > Generator: advanced > > > > ?¿?¿ > > > > If you ask me that's sdrawkcab > > You think that generators are less advanced than the notion of code reuse?? >
Notion of code reuse -- easy Writing reusable code -- hard Certainly much harder than writing working useful generators. Do remember that historical and pedagogical order dont necessarily match. A C programmer would say integers (scalars) are easy, lists are hard. Not a notion necessary or useful in python Let's just close this (for now) Chris with this: You are in all likelihood a better programmer than I. It so happens I have directly or indirectly taught near to 2000 students in about 25 years. Lets reopen this conversation when you reach ⅓ that number, ok? -- https://mail.python.org/mailman/listinfo/python-list