<filename>Projects Cousera/Python For Everybory/random.py
def fred():
    print("Zap")


def jane():
    print("ABC")


jane()
fred()
jane()


def thing():
    print('Hello')


print('There')


def func(x):
    print(x)


func(10)
func(20)


def stuff():
    print('Hello')
    return
    print('World')


stuff()


def greet(lang):
    if lang == 'es':
        return 'Hola'
    elif lang == 'fr':
        return 'Bonjour'
    else:
        return 'Hello'


print(greet('fr'), 'Michael')


def addtwo(a, b):
    added = a + b
    return a


x = addtwo(2, 7)
print(x)

<filename>Projects Cousera/Python For Everybory/random.py
def fred():
    print("Zap")


def jane():
    print("ABC")


jane()
fred()
jane()


def thing():
    print('Hello')


print('There')


def func(x):
    print(x)


func(10)
func(20)


def stuff():
    print('Hello')
    return
    print('World')


stuff()


def greet(lang):
    if lang == 'es':
        return 'Hola'
    elif lang == 'fr':
        return 'Bonjour'
    else:
        return 'Hello'


print(greet('fr'), 'Michael')


def addtwo(a, b):
    added = a + b
    return a


x = addtwo(2, 7)
print(x)
