# what is the usage of python lambda functions

Lambda is a keyword used to create an functions without a name or in simple lambda is used to create an anonymous functions,lambda function has n number of argument with a single expression which is processed and returned the result.we know normally a function is defined in python using def statement followed by function name and argument after evaluating it should return the result to get the result value when function is called but lambda has no name and return statement

Syntax Lambda functon

```lambda arguments : expression

Example

Tenpercentage= lambda x :x * 10/100

#"x" is an argument and "x * 10/100" is an expression which got evaluated and returned.

print(Tenpercentage(200))

print(Tenpercentage(450))

Output See above code in Normal functions syntax

def Tenpercentage(n):
return n * 10/100

print(Tenpercentage(450))
```

## common usage of python lambda functions

Lambda function perform well if we use lambda functions inside another function see example

See example

```def currency_convert(currencyvalue):
return lambda x:x*currencyvalue;

Israelicurrency=currency_convert(3.48);  #find dollar to Israeli New Shekel

print(Israelicurrency(100));

print(Israelicurrency(900));

indiancurrency=currency_convert(71.57);  #Find dollar to INR

print(indiancurrency(100));

print(indiancurrency(900)); ```
{"ft_lang_label":"__label__en","ft_lang_prob":0.6543084,"math_prob":0.9507524,"size":1291,"snap":"2019-51-2020-05","text_gpt3_token_len":276,"char_repetition_ratio":0.17327118,"word_repetition_ratio":0.0,"special_character_ratio":0.2215337,"punctuation_ratio":0.07981221,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9889769,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,7,null,7,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-10T20:55:43Z\",\"WARC-Record-ID\":\"<urn:uuid:4b08df63-59d7-44dc-8c67-f66fd5349679>\",\"Content-Length\":\"34423\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:5a9114c8-0f28-4d66-aef2-010b4bc6586f>\",\"WARC-Concurrent-To\":\"<urn:uuid:538d5695-5f27-440b-9c1e-ac3bc618bc09>\",\"WARC-IP-Address\":\"104.28.3.5\",\"WARC-Target-URI\":\"https://www.tutorialshore.com/usage-python-lambda-functions/\",\"WARC-Payload-Digest\":\"sha1:CDHONUBJ4FRDJQKA5SHCN2NFNUKTHWPB\",\"WARC-Block-Digest\":\"sha1:7FSAXFH2QRHURTGV23E2C36PFSLFMZHR\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540529006.88_warc_CC-MAIN-20191210205200-20191210233200-00489.warc.gz\"}"}