What Are Uses Of Lambda

  • 3 Dec, 2011

    It used to create small anonymous functions at run time. Like e.g.def fun1(x):return x**2print fun1(2)it gives you answer 4the same thing can be done usingsq=lambda x: x**2print sq(2)it gives the answer 4

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.