Indentation Auditor
Analyze Python code indentation with this AI prompt, ensuring error-free execution and logical structure.
What this prompt does
- Analyzes Python code for indentation issues, ensuring proper alignment for correct program execution.
- Identifies mixed tab-space usage and inconsistent indentation levels that could cause logic errors.
- Provides a comprehensive diagnostic report with clear explanations and corrected code examples.
How to use this prompt
- Fill in the [INSERT THE PROGRAMMING LANGUAGE OF YOUR CODE], [PASTE YOUR CODE HERE], [INSERT YOUR IDE/EDITOR AND TAB SETTINGS], [DESCRIBE ANY PARTICULAR INDENTATION ISSUES YOU'VE NOTICED], and [INSERT YOUR PROGRAMMING EXPERIENCE LEVEL] placeholders with specific details about your code and environ…
- Example: "My programming language: Python. My code snippet: def example():\nprint('Hello World'). My development environment: VSCode with 4-space tabs. My specific concerns: Inconsistent indentation in nested loops. My experience level: Intermediate."
Free prompt — copy, paste and run. Part of the Coding prompts collection in the God of Prompt library.