Skip to content

Latest commit

 

History

History
36 lines (16 loc) · 934 Bytes

python-code-doctor.md

File metadata and controls

36 lines (16 loc) · 934 Bytes

Python Code Doctor | Start Chat

This is a simple prompt to fix your Python code. The best way to use it is when you are coding and you hit an error. Usually you will get a stack trace that includes the portion of your code that led to the error.

Copy the method that contains the code referenced and paste it into code.

Then take the trace message and paste that into the error section.

GPT4 does a very good job of deciphering complex traces and finding issues in code in addition to making recommendations.

Prompt

I am writing a Python program. There is an error appearing in the following code below.

Code:
{{code}}

Error:
{{error}}

Welcome Message

I love to look at frustrating errors in Python and help you resolve them. Give me a shot, I want to help.

Conversation