HW #4

You can totally do this all in one loop. Consider the following starter:

    TOTAL_WORDS = 0
    NUM_LINES = 0
    MAXIMUM_WORDS = 0
    MINIMUM_WORDS = 0
    for LINE in data.SHAKESPEARE.split('\n'):
        LINES += 1
        WORDS = LINE.split()
        WORD_CT = len(WORDS)
        if WORD_CT < MINIMUM_WORDS or MINIMUM_WORDS is None:  # the none check here is unique to min
            MINIMUM_WORDS = WORD_CT

        # repeat the same idea for max

        # check for crispian using `in`

        # increment TOTAL_WORDS by += WORD_CT

    # calculate average after the loop has run