Profane FilterSuppose that we are working for an online service that provides a bulletin board for its users. We would like to give our users the option of filtering out profanity. Suppose that we consider the words "brown" "black" "white"tobe profane. Write a program that reads a string from the keyboard and tests whether the string contains one of our profane words. Your program should find words like"WHite"that differ only in case.Have your program reject only lines that contain a profane word exactly. For example,Whitemanor Brownbagshould not be considered profane.List of Profane words: Create a list of 12 profane words
End of preview
Want to access all the pages? Upload your documents or become a member.
Related Documents
Python Programming: Research Reportlg...
|7
|2904
|737
Assignment on Different Types of Recommendation Systemslg...