Code Execution

Module: beginner tips

What it is

Code execution allows AI assistants to actually run code and return real results, not just write code for you to run elsewhere. The AI can perform calculations, process data, create visualisations, and execute programs in a sandboxed environment.

Why it matters

Code execution transforms AI from a code-writing assistant to a computation tool. Instead of trusting that generated code works, you can see actual results. It's particularly powerful for data analysis, calculations, and any task where you need verified outputs rather than suggested code.