'''
Created on Feb 15, 2015

@author: Mike
'''
from __future__ import print_function

def calc(x):
    return x*2

print(calc(3))


t = lambda x:x*2 #one expression, no commands
print(t(3))

def add(x,y):
    return x+y
def minus(x,y):
    return x-y
print(add(15,3))
print(minus(15,3))


#multiple return value for a lambda
result=lambda x,y: (x+y,x-y)

print(result(15,3))
print(result(15,3)[0])
print(result(15,3)[1])

e784499201ea366cae38343e0138a6918db8c578
<mask token>


def calc(x):
    return x * 2


<mask token>


def minus(x, y):
    return x - y


<mask token>

<mask token>


def calc(x):
    return x * 2


print(calc(3))
<mask token>
print(t(3))


def add(x, y):
    return x + y


def minus(x, y):
    return x - y


print(add(15, 3))
print(minus(15, 3))
<mask token>
print(result(15, 3))
print(result(15, 3)[0])
print(result(15, 3)[1])

<mask token>


def calc(x):
    return x * 2


print(calc(3))
t = lambda x: x * 2
print(t(3))


def add(x, y):
    return x + y


def minus(x, y):
    return x - y


print(add(15, 3))
print(minus(15, 3))
result = lambda x, y: (x + y, x - y)
print(result(15, 3))
print(result(15, 3)[0])
print(result(15, 3)[1])

<mask token>
from __future__ import print_function


def calc(x):
    return x * 2


print(calc(3))
t = lambda x: x * 2
print(t(3))


def add(x, y):
    return x + y


def minus(x, y):
    return x - y


print(add(15, 3))
print(minus(15, 3))
result = lambda x, y: (x + y, x - y)
print(result(15, 3))
print(result(15, 3)[0])
print(result(15, 3)[1])

'''
Created on Feb 15, 2015

@author: Mike
'''
from __future__ import print_function

def calc(x):
    return x*2

print(calc(3))


t = lambda x:x*2 #one expression, no commands
print(t(3))

def add(x,y):
    return x+y
def minus(x,y):
    return x-y
print(add(15,3))
print(minus(15,3))


#multiple return value for a lambda
result=lambda x,y: (x+y,x-y)

print(result(15,3))
print(result(15,3)[0])
print(result(15,3)[1])
