Python - Lambda with default argument value

Introduction

Defaults work on lambda arguments, just like in a def:

Demo

x = (lambda a="fee", b="fie", c="foe": a + b + c) 
print( x("wee") )

Result

Related Topic