I am often asked which Python book I recommend. Here is a good one: https://amzn.to/2E2x5bL Network Programmability and Automation: Skills for the Next-Generation Network Engineer
This book covers:
– Python programming basics: data types, conditionals, loops, functions, classes, and modules
– Linux fundamentals to provide the foundation you need on your network automation journey
– Data formats and models: JSON, XML, YAML, and YANG for networking
– Jinja templating and its applicability for creating network device configurations
– The role of application programming interfaces (APIs) in network automation
– Source control with Git to manage code changes during the automation process
– How Ansible, Salt, and StackStorm open source automation tools can be used to automate network devices
– Key tools and technologies required for a Continuous Integration (CI) pipeline in network operations
