def  count_letters(str,letter,loc=0):
    count=0
    str=str[loc:]
    while str.find(letter)!=-1:
        count+=1
        str=str[str.find(letter)+1:]
    return count
def text_anal(text):
    punc=':;][\].,)(!@#$%^&*()\'"_-/?<>+='
    count1=0
    count2=0
    list1=list(text.split())
    for i in list1:
        for j in list1[count1]:
            if j in punc:
                list1[count1]=list1[count1].replace(j,'')
        count1+=1

        if 'e' in i:
            count2+=1
    etimep=(count2*100)/len(list1)
    etimep='%.1f'%etimep
    print('Your text contains {0} words, of which {1} ({2}) contain an \'e\'.'.format(len(list1),count2,etimep))
def  multiplication_list(range1):
    list1=[]
    string=''
    for i in range(range1+1):
        string=string+str(i)+' '
    list1.append(string)
    string=''
    for i in range(range1):
        string=string+str(i+1)+' '+str(i+1)+' '
        for j in range(2,range1+1):
            string=string+str((i+1)*(j))+' '
        list1.append(string)
        string=''
    return list1
def  multiplication_print(list1):
    for i in list1:
        list2=list(i.split())
        for j in list2:
            print('\t',j,end='')
        print('\n')
multiplication_print(multiplication_list(12))
