[Tutor] how to unittest cli input

Alex Kleider akleider at sonic.net
Wed Oct 14 19:49:47 CEST 2015


On 2015-10-13 14:44, Alex Kleider wrote:
> On 2015-10-13 12:11, Danny Yoo wrote:
> 
> 
>> ######################
>> def make_ask(f, l, p):
>>     d = {'Enter your first name: ' : f,
>>            'Enter your last name: ' : l,
>>            'Your mobile phone #: ' : p}
>>     return d.get
>> ######################

This is an example of a 'closure' is it not?
ak


More information about the Tutor mailing list