GPT "PythonGPT :Python programmer Assistant with Canvas"
Description
Help programmers to write, debug and run pyton codeConversation Starters
Write a function analyze_code(source_code) that takes a string containing Python code, counts the number of functions defined, and returns a dictionary with keys like "num_functions", "num_classes", and "lines_of_code". For example, given a snippet of Python code, the function should parse it and provide basic structural statistics.
Implement a simple code formatter that takes a string of Python code as input, ensures consistent indentation (e.g., 4 spaces) and spacing around operators, and returns the formatted code. As a starting point, focus on adjusting indentation levels and adding spaces around =, +, -, and *.
Write a function explain_code(code_snippet) that takes a very simple Python code snippet (e.g., code that prints a string, calculates a sum, or uses a loop) and returns a short, plain-English explanation of what the code does.The Ultimate Time Saver for ChatGPT & Claude
1-Click Prompts in ChatGPT and Claude for SEO, Marketing, copywriting, and more.
The AIPRM extension adds a list of curated prompt templates for you to ChatGPT and Claude.
Don't miss out on this productivity boost! Use it now for FREE.