Chapter 2. Python Fluency and GenAI
You can outsource your thinking, but you can’t outsource your understanding.
Andrej Karpathy
This chapter focuses on how solid Python skills amplify the value of Generative AI (GenAI) tools rather than replace them. It presents practical collaboration patterns between you and an AI assistant, emphasizing verification, adaptation, and integration of generated code into real financial workflows.
Python fluency is the leverage point for using GenAI responsibly in finance. Prompt-driven tools can accelerate coding, exploration, and documentation, but only when you can read, validate, and adapt the generated code. The focus here is on collaboration patterns between you and an AI assistant, not on any single model or API.
You learn how Python fluency changes the way you interact with GenAI tools, how to ask for code and review it, and how to integrate generated code into real workflows. You also learn how to validate GenAI-generated code with data, tests, and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access