mirror of
https://github.com/friuns2/BlackFriday-GPTs-Prompts.git
synced 2026-04-30 22:13:55 +07:00
37 lines
934 B
Markdown
37 lines
934 B
Markdown
|
|
|
|
# Python Code Doctor | [Start Chat](https://gptcall.net/chat.html?data=%7B%22contact%22%3A%7B%22id%22%3A%22EslNVWlz8vN2GA_8Er2bN%22%2C%22flow%22%3Atrue%7D%7D)
|
|
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
|
|
|
|
|
|
|