Back to Lesson

Text Redaction

Remove sensitive information from text components using replace.

Instructions

  • Given
    comment = "This product is terrible! I hate it."
  • Replace the word
    "terrible"
    with
    "not great"
    , and
    "hate"
    with
    "dislike"
    .
  • Print the updated review.
main.py
main.py