Tested on:Python 2.7; Python 3
Prerequisites:Basic Raspberry setup step by step

Lambda functions

Lambda functions are compact forms of ordinary functions.

is equivalent to

This shortens the code, like in this software testing code snippet.

Software testing with Mock: http://www.knight-of-pi.org/software-testing-mock-edge-values-or-physical-interactions

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.


Time limit is exhausted. Please reload CAPTCHA.