python 2 questions

I have a file named my_file.text

want to do the following


#Read in my_file.txt

#split file into words

#write to a file called question2.out that contains 1 word per line (words can

occur more than once)


#Replace all the words that start with a capital consonant (BCDFGH….Z) with the

word BEEP using a regular expression and print the result

#the following should print ‘I will join BEEP BEEP on his adventure to the BEEP to

find the BEEP’

sentence=’I will join Jon Snow on his adventure to the North to find the Wildlings’