'''
Created on Sep 15, 2016

@author: Susan
'''
def mystery(word): 
    answer = "" 
    for ch in word: 
        if ch.lower() != 'e': 
            answer = answer + ch 
    return answer 
  
print "mystery"                                                                           
print "input September:", mystery("September")                                                      
print "input August:", mystery("August")     
                                                    
def mystery2(word): 
    count = 0 
    for ch in word: 
        count = count + 1 
    return count 
 
def mystery3(word): 
    answer = 0 
    for ch in word: 
        if ch.lower() != 'e': 
            answer = answer + 1 
    return answer 
 
 
 
  
print 
print "mystery2"                                                                          
print "input September:", mystery2("September")                                                     
print "input August:", mystery2("August")     
print "mystery3"                                                   
print "input September:", mystery3("September")                                                     
print "input August:", mystery3("August")                                                        
print "input Eieio:", mystery3("Eieio")                                                         

 
def mysteryList(phrase): 
    for word in phrase.split(): 
        print word 

def mysteryList2(phrase): 
    alist = phrase.split()
    print "alist is:", alist    
    for word in alist: 
        print word  
print
print "mysteryList, input is 'August is warmer than now'"                                                                           
mysteryList("August is warmer than now")                                        
print "mysteryList2, input is 'August is warmer than now'"                                                                           
mysteryList2("August is warmer than now")   
 
def mystery4(phrase): 
    count = 0 
    for word in phrase.split():
        count = count + 1
    return count
 
def mystery5(phrase):
    hold = phrase.split()
    answer = hold[0]
    for word in hold[1:]:
        ch = word[0]
        if ch.lower() != 'b':
            answer = answer + " " + word
    return answer
 

print
print "mystery4 input is 'How big is big John Boy Brook'"
print mystery4("How big is big John Boy Brook")
print "mystery5 input is 'How big is big John Boy Brook'"
print mystery5("How big is big John Boy Brook")
print "mystery4 input is 'The Big Blue Ocean is cold'"
print mystery4("The Big Blue Ocean is cold")
print "mystery5 input is 'The Big Blue Ocean is cold'"
print mystery5("The Big Blue Ocean is cold")
print "mystery4 input is 'Blue Devils Go GO GO'"
print mystery4("Blue Devils Go GO GO")
print "mystery5 input is 'Blue Devils Go GO GO'"
print mystery5("Blue Devils Go GO GO") 
