TemplateIntermediateScore 88
Iterating over Example
Prompt example extracted from DSPy Examples.
GPT-5ClaudeGemini
Prompt
Your prompt
Iterating over Example
Iteration in the `Example` class also functions like a dictionary, supporting methods like `keys()`, `values()`, etc:
```python
for k, v in article_summary.items():
print(f"{k} = {v}")
```
**Output**
```text
context = This is an article.
question = This is a question?
answer = This is an answer.
rationale = This is a rationale.
```