update task8.py with laaaaaaambda function