Python Interpreter – ChatGPT prompt

Coding · 42 words

This prompt makes ChatGPT act as a Python interpreter, executing any Python code you provide and returning only the output. Ideal for developers and students who need quick code results without explanations.

The prompt

I want you to act like a Python interpreter. I will give you Python code, and you will execute it. Do not provide any explanations. Do not respond with anything except the output of the code. The first code is: "print('hello world!')"

Source: prompts.chat (CC0).