Hacker News new | past | comments | ask | show | jobs | submit login

IMHO that greeter function of yours is unnecessarily complicated. The same could be achieved in an easier way:

"""python

from functools import partial

def greeter(name):

    print(f"Hello {name}")

greet1 = partial(greeter, "Joe")

greet2 = partial(greeter, "Sue")

greet1()

greet2()

"""




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: