Challenge: Using the file school_prompt.txt, if the character ‘p’ is in a word, then add the word to a list called p_words.
school_prompt = open('school_prompt.txt','r')
chars = school_prompt.read()
words = chars.split() # 重点:把每个单词转化到列表
p_words = list()
for word in words:
if 'p' in word:
p_words.append(word)
print(p_words)