Google Gemini can write and run Python repeatedly within a single API request, using the results to refine its answer. The optional code execution tool works with Gemini 1.5 Pro and Gemini 1.5 Flash, ...