コード風プロンプト例3i アキュムレータパターン
Executes a Python loop with accumulator pattern and prints results.
/plugin marketplace add kokuyouwind/claude-plugins/plugin install code-like-prompt@kokuyouwind-plugins{"start": number, "end": number}Emulate the following code internally (without using external tools or interpreter) with environment: $ARGUMENTS
Output only what print() commands would output. Do not show any explanations, code, variables, or other messages.
# Validate required arguments
if start is None:
raise ValueError("Required argument 'start' is missing")
if end is None:
raise ValueError("Required argument 'end' is missing")
# Loop with accumulator
total = 0
for i in range(start, end):
total += i
print(f"foo{total}")