diff --git a/sections/cleaning.md b/sections/cleaning.md index 351667c..3a15ffb 100644 --- a/sections/cleaning.md +++ b/sections/cleaning.md @@ -229,14 +229,14 @@ b_words = ['god', 'apostle', 'angel'] Then we will loop through the words in our cleaned corpus, and see if any of them are in our list of biblical words. We'll then save into another list just those words that appear in both. - ```python +```python my_list = [] for word in b_words: if word in text1_clean: my_list.append(word) else: pass -``` +``` And then we will print the results.