Chain-of-Code Prompting: A Walkthrough for Mixed Reasoning Tasks

Chain-of-Code extends Program-of-Thoughts to tasks that mix real computation with qualitative reasoning — the model writes pseudocode interleaving executable code with natural-language 'execute by thinking' sections.