You can use python interpreters available online like programiz or you can install python software in your Mac.
After installing the python software use python shell and paste this code in the shell and run it , the code output will be in the interpreter where hello world will be printed as a string
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence