Categories:Viewed: 4 - Published at: a few seconds ago

[ Write a lambda function to add two numbers ]

add = lambda a, b: a+b

Write a lambda function that gives True if the input number is even otherwise False

even = lambda a: True if a%2 == 0 else False

Write a lambda function to to give character grom it's ascii value

ascii = lambda a: chr(a)

Write a lambda function to that gives the number of digits in a number

dig_cnt = lambda a: len(str(a))