Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 340 Bytes

File metadata and controls

27 lines (23 loc) · 340 Bytes

1.04 Activity 3

Try to convert these functions into lambda functions.

def function_1(a,b):
    c=a+b
    return c
def function_2(a,b):
    c=0
    for i in range(a):
        c+=2*b
    return c
def function_3(a,b):
    c=0
    if a>3:
        c=12
    else:
        c='Too big.'
    return c