In python yes, but if you add or use only static types it clears this all up and the LLM will generate short, optimal code without edge case fluff.