#!/usr/bin/env python
# coding: utf-8

# In[1]:


#problem 1
my_word_list = ['apple', 'orange', 'banana']
my_new_word_object = map(lambda x: '_' + x, my_word_list)
my_new_word_list =  list(my_new_word_object)
print(my_new_word_list)


# In[2]:


#problem 2
my_state_list = ['CA', 'OR', 'NY', 'OR']
my_new_word_object = filter( lambda x: x != 'OR', my_state_list)
print( list(my_new_word_object) )


# In[3]:


#problem 3
my_number_list = [1, 2, 3, 4, 5]
my_number_comp_list = [number*3 for number in  my_number_list]
print(my_number_comp_list)


# In[4]:


#problem 4
list_of_words = ['love', 'the', 'outdoors', 'with' , 'passion']
words_to_remove = ['the', 'with', 'of', 'a']
my_new_list = []
[my_new_list.append(selectedWord) for selectedWord in list_of_words if selectedWord not in words_to_remove]
print(my_new_list)


# In[5]:


#problem 5
my_new_word_object = filter(lambda selectedWord: selectedWord not in words_to_remove, list_of_words)
print( list(my_new_word_object) )

