'''
Created on Sep 14, 2017

@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 mystery3a(word): 
    answer = 0 
    for ch in word:  
        if ch.lower() != 'e': 
            answer = answer + 1 
        return answer             # return indented


print "mystery3a"                                                   
print "input September:", mystery3a("September")                                                     
print "input August:", mystery3a("August")                                                        
print "input Eieio:", mystery3a("Eieio")     

 
def mysteryList(phrase): 
    alist = phrase.split()
    print "alist is ", alist
    for word in alist: 
        print word 


print
phrasemys = "August is warmer than now"
print "mysteryList, input is: ", phrasemys                                                                          
mysteryList(phrasemys)                                        
 
 
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:]:
        if word[0].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 "mystery4 input is 'The Big Blue Ocean is cold'"
print mystery4("The Big Blue Ocean is cold")
print "mystery4 input is 'Blue Devils Go GO GO'"
print mystery4("Blue Devils Go GO GO")
  
print
print "mystery5 input is 'How big is big John Boy Brook'"
print mystery5("How big is big John Boy Brook")
print "mystery5 input is 'The Big Blue Ocean is cold'"
print mystery5("The Big Blue Ocean is cold")
print "mystery5 input is 'Blue Devils Go GO GO'"
print mystery5("Blue Devils Go GO GO") 
