← Back to challenges

Reverse Psychology

PythonMediumformattingstringslanguage_fundamentals

Instructions

For this challenge, you will NOT be given a string. Your task isn't to add "Do not" before the given string. If there is no given string, you will not return "Do not do anything." Do not check the examples to know how to do this challenge.

Examples

reverse_psychology("wash the dishes") ➞ "Do not wash the dishes."

reverse_psychology("eat your lunch") ➞ "Do not eat your lunch."

reverse_psychology("go to school") ➞ "Do not go to school."

Notes

Are available.

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Both Zero, Negative or Positive