Solution Exercise 31

Write a program that maps a string with several words into a list of words, that is each word in the original string will be one item in the new list.

def map_words(text):
    # The easiest way to do this is to split the string
    # using the split function
    return text.split()


def main():
    print(map_words("Split me up please"))

    
if __name__ == '__main__':
    main()