I will professionally debug and fix your Python scripts to solve common errors such as logic errors, index errors, syntax errors, division by zero, and incorrect calculation results. This demo script demonstrates how to fix three typical programming mistakes: adding empty list checking to avoid division by zero errors, correcting value accumulation logic to ensure accurate total calculation, and using dynamic list length instead of fixed values for stable and reliable average computation. I can analyze your code, identify hidden bugs, optimize the structure, improve stability, and make your program run correctly and efficiently. Whether you have syntax issues, wrong output, logical mistakes, or runtime exceptions, I will provide clear, clean, and well-commented fixed code with detailed explanations. I ensure all scripts are tested, stable, and easy to maintain for any data calculation or basic automation task.