Separate the Mascot from the Lesson
In the Prompt: Keep the mascot in a narrow stage area and reserve the rest for the example.
The cycling pelican supplies personality while the code panel carries the explanation. Define a narrow stage area for the character and a stable text area for the example. This separation lets the mascot loop continuously without interrupting a reader who needs to follow a specific line of code.