Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Using a lambda function within another function
Post: RE: Using a lambda function within another functio...

(Jan-08-2019, 01:22 PM)buran Wrote: I think your confusion is not with lambda, but with functions altogether. Let's look at your second snippet (fixed for the NameError) and with some additions from...
JChapman General Coding Help 8 5,479 Jan-08-2019, 01:54 PM
    Thread: Using a lambda function within another function
Post: RE: Using a lambda function within another functio...

(Jan-08-2019, 12:21 PM)Larz60+ Wrote: Sort of, the number of function arguments must be matched, unless optional. For example: def foo(a, b): ...must be passed two arguments. but: def foo(a, b=1...
JChapman General Coding Help 8 5,479 Jan-08-2019, 12:56 PM
    Thread: Using a lambda function within another function
Post: RE: Using a lambda function within another functio...

(Jan-08-2019, 11:59 AM)Larz60+ Wrote: I think editing post is allowed after 4 or 5 posts.Thanks for letting me know. (Jan-08-2019, 11:30 AM)Larz60+ Wrote: passing only 1 argument where two are r...
JChapman General Coding Help 8 5,479 Jan-08-2019, 12:13 PM
    Thread: Using a lambda function within another function
Post: RE: Using a lambda function within another functio...

(Jan-08-2019, 11:30 AM)Larz60+ Wrote: first code cannot run as myfunc has not been defined, to make it function use: def foo(n): return lambda a : a * n bar = foo(3) print(bar(11))Second code ...
JChapman General Coding Help 8 5,479 Jan-08-2019, 11:51 AM
    Thread: Using a lambda function within another function
Post: Using a lambda function within another function

I have very recently started looking at python, most of my (recent) prior programming experience being with VBA, and have been following the W3Schools tutorials. I am currently looking at Lambda funct...
JChapman General Coding Help 8 5,479 Jan-08-2019, 11:03 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020