search and replace vulgar words in a text by using a txt file containing all the bad words with python : **hi everyone i am just a newbie with python  , I wrote these lines of code,please do not laugh at me, I want to learn ! NEED Help Please**

    def check_offline(text):
    	list_pro = open('full-list-bad.txt','r')
    	
    	content = list_pro.readline()
    	for ligne in content :
    		if ligne in text :
    			remplacement = "*" * len(ligne)
    			text = text.replace(ligne ,remplacement)
    			print ligne
    			
    	return text
    	
    print check_offline("this is a  shit world " )

