#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This docstring is a for loop to count strings"""


import decimal as dec

def lexicographics(to_analyze):


    """ A function that calculates the maximun, minimum and average.

    Args:
        to_analyze(mixed): list of strings.

    Examples:
    >>> import data
    >>> lexicographics(data.SHAKESPEARE)
    (12, 5, Decimal('8.14'))

   >>> lexicographics('Feelings\nNothing more than\nFeelings')
   (3, 1, Decimal('1.666666666666666666666666667'))
   >>> lexicographics(data.SHAKESPEARE)
   (12, 5, Decimal('8.14'))
    """
    mylist = []
    lines = to_analyze.split("\n")
    for line in lines:
        num_words = line.split()
        mylist.append(len(num_words))
    mymin = min(mylist)
    mymax = max(mylist)
    myav = float(sum(mylist))/float(len(mylist))
    return mymax, mymin, myav

@@ -296,25 +296,8 @@
 %0A   
- %3E%3E%3E import data%0A
     
@@ -341,189 +341,8 @@
     
-(12, 5, Decimal('8.14'))%0A%0A   %3E%3E%3E lexicographics('Feelings%5CnNothing more than%5CnFeelings')%0A   (3, 1, Decimal('1.666666666666666666666666667'))%0A   %3E%3E%3E lexicographics(data.SHAKESPEARE)%0A
    (

Task 3