claude-code-sdk-python/examples
Claude 804c8df0cd
Refactor FizzBuzz to use generator-based implementation
- Replace single-number fizzbuzz function with fizzbuzz_generator
- Generator yields results for 1 to limit, providing memory efficiency
- Update tests to work with generator using helper function
- Add specific test for generator behavior
- Maintain all existing functionality while improving performance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-08 00:45:16 +00:00
..
agents.py Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00
fizzbuzz.py Refactor FizzBuzz to use generator-based implementation 2025-10-08 00:45:16 +00:00
hooks.py Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00
include_partial_messages.py Update model references to claude-sonnet-4-5 (#198) 2025-09-30 12:59:14 -07:00
mcp_calculator.py Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00
quick_start.py Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00
setting_sources.py Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00
stderr_callback_example.py Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00
streaming_mode.py Update model references to claude-sonnet-4-5 (#198) 2025-09-30 12:59:14 -07:00
streaming_mode_ipython.py Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00
streaming_mode_trio.py Update model references to claude-sonnet-4-5 (#198) 2025-09-30 12:59:14 -07:00
system_prompt.py Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00
tool_permission_callback.py Rename claude_code to claude_agent (#188) 2025-09-28 14:52:53 -07:00