Multiple statement lambda expressions
25 Aug
2013
25 Aug
'13
6:24 a.m.
What about this? lambda x, y: a = sum(x)/len(x); b = sum(y)/len(y); (a+b)/2;; The double-semicolon notation can also replace indentation for grouping of statements: y=0 for x in list: y=2*y+x if y%13==0: y=12;;;;
3889
Age (days ago)
3889
Last active (days ago)
3 comments
4 participants
participants (4)
-
Michael Mitchell
-
Musical Notation
-
Nick Coghlan
-
Steven D'Aprano