Real Python

Get Your Code: Click here to download the dice program in its original and improved versions, plus the AGENTS.md file that guided OpenCode.

Almost there! Complete this form and click the button below to gain instant access:

A person in a hard hat and safety goggles with a clipboard stands beside a wall of panels labeled OpenCode, Analyze, Refactor, AI Models, Python Projects, LSP, Git UI, and Modes (Plan/Build).

Watch OpenCode Improve a Small Python Dice Program

๐Ÿ”’ No spam. We take your privacy seriously.

ยฉ 2012โ€“2026 Real Python โ‹… Privacy Policy