Skip to main content

import re

def count_sensitive_words(input_string): # Define a list of sensitive words sensitive_words = ["fucking", "watch", "step", "father", "wife", "sex", "in3x"]

# Initialize a counter for sensitive words sensitive_word_count = 0

# Convert the input string to lowercase input_string = input_string.lower()

# Increment the counter by the number of matches sensitive_word_count += len(matches)