def analyze_text(sentence):
    
    # your code here - count total characters
    total = 0
    for char in sentence:
        if findCharacters(char):
            total = total + 1
    #print (total)
    
    occurances = sentence.count('e') + sentence.count('E')
    #print(occurances)
    
    percent = int(occurances)/int(total)*100
    return "The text contains "+str(total)+" alphabetic characters, of which "+str(occurances)+" (" +str(percent)+"%) are 'e'."
    
def findCharacters(x):
    return x in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'


# Don't copy these tests into Vocareum
from test import testEqual

sentence = "Eeeee"
expected = "The text contains 5 alphabetic characters, of which 5 (100.0%) are 'e'."
testEqual(analyze_text(sentence), expected)

sentence = "Blueberries are tastee!"
expected = "The text contains 20 alphabetic characters, of which 6 (30.0%) are 'e'."
testEqual(analyze_text(sentence), expected)

sentence = "Wright's book, Gadsby, contains a total of 0 of that most common symbol ;)"
expected = "The text contains 55 alphabetic characters, of which 0 (0.0%) are 'e'."
testEqual(analyze_text(sentence), expected)

9de740d9baf1d9b5c08c1a844f9b14f5bdb3370c
def analyze_text(sentence):
    total = 0
    for char in sentence:
        if findCharacters(char):
            total = total + 1
    occurances = sentence.count('e') + sentence.count('E')
    percent = int(occurances) / int(total) * 100
    return 'The text contains ' + str(total
        ) + ' alphabetic characters, of which ' + str(occurances) + ' (' + str(
        percent) + "%) are 'e'."


def findCharacters(x):
    return x in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'


<mask token>

def analyze_text(sentence):
    total = 0
    for char in sentence:
        if findCharacters(char):
            total = total + 1
    occurances = sentence.count('e') + sentence.count('E')
    percent = int(occurances) / int(total) * 100
    return 'The text contains ' + str(total
        ) + ' alphabetic characters, of which ' + str(occurances) + ' (' + str(
        percent) + "%) are 'e'."


def findCharacters(x):
    return x in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'


<mask token>
testEqual(analyze_text(sentence), expected)
<mask token>
testEqual(analyze_text(sentence), expected)
<mask token>
testEqual(analyze_text(sentence), expected)

def analyze_text(sentence):
    total = 0
    for char in sentence:
        if findCharacters(char):
            total = total + 1
    occurances = sentence.count('e') + sentence.count('E')
    percent = int(occurances) / int(total) * 100
    return 'The text contains ' + str(total
        ) + ' alphabetic characters, of which ' + str(occurances) + ' (' + str(
        percent) + "%) are 'e'."


def findCharacters(x):
    return x in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'


<mask token>
sentence = 'Eeeee'
expected = (
    "The text contains 5 alphabetic characters, of which 5 (100.0%) are 'e'.")
testEqual(analyze_text(sentence), expected)
sentence = 'Blueberries are tastee!'
expected = (
    "The text contains 20 alphabetic characters, of which 6 (30.0%) are 'e'.")
testEqual(analyze_text(sentence), expected)
sentence = (
    "Wright's book, Gadsby, contains a total of 0 of that most common symbol ;)"
    )
expected = (
    "The text contains 55 alphabetic characters, of which 0 (0.0%) are 'e'.")
testEqual(analyze_text(sentence), expected)

def analyze_text(sentence):
    total = 0
    for char in sentence:
        if findCharacters(char):
            total = total + 1
    occurances = sentence.count('e') + sentence.count('E')
    percent = int(occurances) / int(total) * 100
    return 'The text contains ' + str(total
        ) + ' alphabetic characters, of which ' + str(occurances) + ' (' + str(
        percent) + "%) are 'e'."


def findCharacters(x):
    return x in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'


from test import testEqual
sentence = 'Eeeee'
expected = (
    "The text contains 5 alphabetic characters, of which 5 (100.0%) are 'e'.")
testEqual(analyze_text(sentence), expected)
sentence = 'Blueberries are tastee!'
expected = (
    "The text contains 20 alphabetic characters, of which 6 (30.0%) are 'e'.")
testEqual(analyze_text(sentence), expected)
sentence = (
    "Wright's book, Gadsby, contains a total of 0 of that most common symbol ;)"
    )
expected = (
    "The text contains 55 alphabetic characters, of which 0 (0.0%) are 'e'.")
testEqual(analyze_text(sentence), expected)

def analyze_text(sentence):
    
    # your code here - count total characters
    total = 0
    for char in sentence:
        if findCharacters(char):
            total = total + 1
    #print (total)
    
    occurances = sentence.count('e') + sentence.count('E')
    #print(occurances)
    
    percent = int(occurances)/int(total)*100
    return "The text contains "+str(total)+" alphabetic characters, of which "+str(occurances)+" (" +str(percent)+"%) are 'e'."
    
def findCharacters(x):
    return x in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'


# Don't copy these tests into Vocareum
from test import testEqual

sentence = "Eeeee"
expected = "The text contains 5 alphabetic characters, of which 5 (100.0%) are 'e'."
testEqual(analyze_text(sentence), expected)

sentence = "Blueberries are tastee!"
expected = "The text contains 20 alphabetic characters, of which 6 (30.0%) are 'e'."
testEqual(analyze_text(sentence), expected)

sentence = "Wright's book, Gadsby, contains a total of 0 of that most common symbol ;)"
expected = "The text contains 55 alphabetic characters, of which 0 (0.0%) are 'e'."
testEqual(analyze_text(sentence), expected)
