Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Practice

Instruction

You're doing really well! Keep it up!

Exercise

Write a function called find_censored_words() that accepts a list of strings and a list of special characters as its arguments, and prints all censored words from it one by one in separate lines.

A word is considered to be censored if it has at least one character from the special_chars list. You can use the word_list variable to test your function.

We've prepared two lists for you: special_chars and word_list.

Stuck? Here's a hint!

You need to use nested loops. An outer loop should iterate over words, and an inner loop should iterate over characters of words. Print the word when you find a special character in it. Use break to stop the inner loop iteration.