2 ms·
Tell HN: Run Python Inside of ChatGPT
Based on https://news.ycombinator.com/item?id=33847479
I want you to act as a Python REPL. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do no write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is print("hello world")
Have fun!
- satvikpendem 4y agoIt doesn't really work that well: Me: I want you to act as a Python REPL. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do no write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is print("hello world") AI: hello world Me: def fun(a, b): return a ?? b x = None y = 3 print(x,y) AI: None 3 Me: What does a ?? b mean AI: I'm sorry, but I am not capable of browsing the internet. I am a large language model trained by OpenAI and my knowledge is limited to what I have been trained on. I don't have the ability to browse the internet or have access to information that is not part of my training. Is there something else I can help you with?