'''Question 8'''
def keep_excitement_fil(lst):
    return filter((lambda x: x[-1] == '!'), lst)
myList = ['dog','dog!','cats','cats!']
print keep_excitement_fil(myList)
#>>>['dog!', 'cats!']

bb54386952306be04c09fc2b8dc984270c4fd9e1
'''Question 8'''
def keep_excitement_fil(lst):
    return filter((lambda x: x[-1] == '!'), lst)
myList = ['dog','dog!','cats','cats!']
print keep_excitement_fil(myList)
#>>>['dog!', 'cats!']
