Mercurial > hg > config
view python/example/anonomouse.py @ 825:5a74c7ae19cd
a useful module; however it does not work; scrapping
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 19 Feb 2017 09:03:52 -0800 |
parents | 9f42400dcd83 |
children |
line wrap: on
line source
def foo(a): c = ['hi'] def bar(n): d = c[:][0].upper() return '{} {}!'.format(d, a) * n fleem = lambda n: '{} {}!'.format(c[:][0].upper(), a) * n c = ['hello'] return (bar, fleem) _bar, _fleem = foo("world") print (_bar(2)) print (_fleem(2))