# Task 1: Implement Word Count in plain python where input is a list of words
# tip: in the python REPL, enter help(dict.setdefault)
def wordcount(words):
    return


# Task 2: Implement Word Count in plain python where input is a list of sentences
def swordcount(sentences):
    return


# Task 3: Implement the following functions, using map, reduce, filter, etc. but NO LOOPS!!

# Given a list of numbers, return only the even numbers.
def evens(numbers):
    return


# Given a list of numbers, raise each number to the power of 2.
def squares(numbers):
    return


# Given a list of words, find the average word length.
def avg_length(words):
    return


# for the range of 1 to 100, find the difference between the sum of the squares and the square of the sum.
# origin (Project Euler): https://projecteuler.net/problem=6
def problem6():
    return


if __name__ == "__main__":
    print(wordcount(["hello", "world", "hello", "sdp"]))
    # should print {'world': 1, 'sdp': 1, 'hello': 2}

    print(swordcount(["hello world", "hello sdp", "hello everyone"]))
    # should print {'world': 1, 'everyone': 1, 'sdp': 1, 'hello': 3}

    print(evens([1, 2, 6, 5, 4, 8, 7, 4, 3, 2]))
    # should print [2, 6, 4, 8, 4, 2]

    print(squares([-1, 2, 3, -4]))
    # should print [1, 4, 9, 16]

    print(avg_length(["hello", "world", "hello", "sdp"]))
    # should print 4.5

    print(problem6())
    # should print -24174150
af1842cfc041ca7ee4b01a402d74d12afe97d655
<mask token>


def swordcount(sentences):
    return


<mask token>


def squares(numbers):
    return


<mask token>


def problem6():
    return


<mask token>

def wordcount(words):
    return


def swordcount(sentences):
    return


<mask token>


def squares(numbers):
    return


def avg_length(words):
    return


def problem6():
    return


<mask token>

def wordcount(words):
    return


def swordcount(sentences):
    return


def evens(numbers):
    return


def squares(numbers):
    return


def avg_length(words):
    return


def problem6():
    return


<mask token>

def wordcount(words):
    return


def swordcount(sentences):
    return


def evens(numbers):
    return


def squares(numbers):
    return


def avg_length(words):
    return


def problem6():
    return


if __name__ == '__main__':
    print(wordcount(['hello', 'world', 'hello', 'sdp']))
    print(swordcount(['hello world', 'hello sdp', 'hello everyone']))
    print(evens([1, 2, 6, 5, 4, 8, 7, 4, 3, 2]))
    print(squares([-1, 2, 3, -4]))
    print(avg_length(['hello', 'world', 'hello', 'sdp']))
    print(problem6())

# Task 1: Implement Word Count in plain python where input is a list of words
# tip: in the python REPL, enter help(dict.setdefault)
def wordcount(words):
    return


# Task 2: Implement Word Count in plain python where input is a list of sentences
def swordcount(sentences):
    return


# Task 3: Implement the following functions, using map, reduce, filter, etc. but NO LOOPS!!

# Given a list of numbers, return only the even numbers.
def evens(numbers):
    return


# Given a list of numbers, raise each number to the power of 2.
def squares(numbers):
    return


# Given a list of words, find the average word length.
def avg_length(words):
    return


# for the range of 1 to 100, find the difference between the sum of the squares and the square of the sum.
# origin (Project Euler): https://projecteuler.net/problem=6
def problem6():
    return


if __name__ == "__main__":
    print(wordcount(["hello", "world", "hello", "sdp"]))
    # should print {'world': 1, 'sdp': 1, 'hello': 2}

    print(swordcount(["hello world", "hello sdp", "hello everyone"]))
    # should print {'world': 1, 'everyone': 1, 'sdp': 1, 'hello': 3}

    print(evens([1, 2, 6, 5, 4, 8, 7, 4, 3, 2]))
    # should print [2, 6, 4, 8, 4, 2]

    print(squares([-1, 2, 3, -4]))
    # should print [1, 4, 9, 16]

    print(avg_length(["hello", "world", "hello", "sdp"]))
    # should print 4.5

    print(problem6())
    # should print -24174150