Fun Generators

Travis Griggs travisgriggs at gmail.com
Fri Apr 23 13:29:20 EDT 2021



> On Apr 23, 2021, at 05:55, Frank Millman <frank at chagford.com> wrote:
> 
> On 2021-04-23 7:34 AM, Travis Griggs wrote:
>> Doing an "industry experience" talk to an incoming class at nearby university tomorrow. Have a couple points where I might do some "fun things" with python. Said students have been learning some python3.
>> I'm soliciting any *fun* generators people may have seen or written? Not so much the cool or clever ones. Or the mathematical ones (e.g. fib). Something more inane and "fun". But still showcasing generators uniqueness. Short and simple is good.
>> Thanks in advance!
> 
> Have you looked at this?
> 
> http://www.dabeaz.com/generators/
> 
> Frank Millman
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list


I hadn't. But now I have. These are really cool. But not as whimsical/simple as I would have hoped. They're actually useful :)


More information about the Python-list mailing list