Code Visualizer: An AI-Integrated Python Code Visualization Tool for Enhanced Programming Comprehension
Learning programming effectively requires not only the ability to write code but also a clear understanding of how code executes at runtime. Many beginners struggle to visualize abstract concepts like variable scope, memory management, and control flow, often leading to misconceptions and frustration. Traditional programming environments, while powerful for code editing and execution, fall short in providing intuitive visualization of program behavior, especially for novice learners. Furthermore, the absence of immediate, personalized guidance compounds the learning curve for self-learners and students in large classrooms. To address these challenges, this paper introduces a web-based Python Code Visualizer with an integrated AI Tutoring System. The platform enables users to step through code execution while clearly displaying the relationships between stack frames, heap objects, and control structures via interactive, graphical representations. The visualization fosters a concrete model of abstract computational processes, thereby enhancing conceptual clarity. What distinguishes this system from existing tools is the incorporation of an AI-powered tutor that provides real-time feedback, explanations, and debugging assistance. By analyzing the execution trace and user queries, the AI tutor generates context-aware responses tailored to the learner’s needs, effectively simulating one-on-one mentorship in a scalable, web-based format. This integration bridges a critical gap in programming education by combining execution visualization with intelligent, adaptive guidance.
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2025-06-24
- DOI
- https://doi.org/10.5281/zenodo.15743361
- Primary Topic
- Teaching and Learning Programming
- Type
- article
- Field-Weighted Citation Impact
- 0.00