<prompt> Kuandika kazi ambayo censors laana maneno ndani ya kamba. Inachukua wale laana maneno kutoka database SQL. laana maneno meza inaitwa CURSE_WORDS_TABLE. laana neno safu inaitwa WORD.  <response>: Heres an example of a function that censors curse words in a given string using a database table called CURSE_WORDS_TABLE and a column called WORD.pythonimport sqlite3def censor_wordsinput_string: Connect to the database file conn sqlite3.connectmydatabase.db cursor conn.cursor Select all words from the curse words table cursor.executeSELECT WORD FROM CURSE_WORDS_TABLE; curse_words cursor.fetchall Replace each curse word in the input string with asterisks for word in curse_words: input_string input_string.replaceword0, lenword0 Close the database connection cursor.close conn.close Return the censored input string return input_stringThe function first connects to a database file assumed to be named mydatabase.db. It then selects all rows from the CURSE_WORDS_TABLE and stores them in a variable called curse_words. Then it iterates through each curse word and replaces it with asterisks using Pythons built-in replace method.Finally, it closes the database connection and returns the censored input string. 