On Sat, Apr 4, 2015 at 3:35 PM, Alan Gauld <alan.ga...@btinternet.com> wrote: > He could have done it in various other ways too: > > eg. > lambda : all(print('Hello lambda world!'), sys.exit() )
Is this what you meant? Because print will always return False. Or did you actually mean: lambda: any(print('Hello lambda world!'), sys.exit()) > But the OR style is established as a kind of idiom, > not just in Python but several other languages too. So this is not unusual for Python. BTW, what are some of the other languages where this type of expression might be commonly used? -- boB _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor