number_list = [-5, 6, 4, 8, 15, 16, 23, 42, 2, 7]
word_list = [ "What", "about", "the", "Spam", "sausage", "spam", "spam", "bacon", "spam", "tomato", "and", "spam"]

# Write a function that takes a list of numbers and returns a new list with only the odd numbers.
def all_odd(number_list):
    for i in number_list[:]:
        i / 2 != 0
    return [i]

# Write a function that takes a list of numbers and returns a new list with only the even numbers.
def all_even(number_list):
    for i in number_list[:]:
        i / 2 == 0
    return [i]

# Write a function that takes a list of strings and a new list with all strings of length 4 or greater.
def long_words(word_list):
    new_list = []
    word_list += [len(new_list(4))]
    return word_list

# Write a function that finds the smallest element in a list of integers and returns it.
def smallest(number_list):
    return min(number_list) 

# Write a function that finds the largest element in a list of integers and returns it.
def largest(number_list):
    return max(number_list)

# Write a function that takes a list of numbers and returns a new list of all those numbers divided by two.
def halvesies(number_list):
    for index in range (len(number_list)):
        newnew_list [index] /= 2
    
    newnew_list = []
    set(number_list) == set(newnew_list)
    return [newnew_list]

# Write a function that takes a list of words and returns a list of all the lengths of those words.
def word_lengths(word_list):
     for i in word_list:
        return(len(i))

# Write a function (using iteration) that sums all the numbers in a list.
def sum_numbers(number_list):
    a = number_list
    b = sum(a)
    return b

# Write a function that multiplies all the numbers in a list together.
def mult_numbers(number_list):
    return 0

# Write a function that joins all the strings in a list together (without using the join method) and returns a single string.
def join_strings(word_list):
    return ""

# Write a function that takes a list of integers and returns the average (without using the avg method)
def average(number_list):
    return 0
