The exercise

Given: sentence = "I love cats"

Replace "cats" with "dogs".
Print the result.

Starter code

sentence = "I love cats"

# Replace cats with dogs / Замените cats на dogs
new_sentence = 

# Print / Выведите
Solve in the playground

Write the code in the browser and run it — no installation needed.