#!/usr/bin/python # Ivan Novick # Nov-2009 # lamda is used in python to create an annoynomous function # d holds a function that doubles a parameter d = lambda p: p * 2 # t holds a function that triples a parameter t = lambda p: p * 3 x = 5 # call double function x = d(x) # call triple function x = t(x) # should be thirty at this point print x