Skip to content
Instant download · PDF + web edition · Free sample of every book · 30-day refund promise
Latent Library Browse books
Programming

Python for AI

A Gentle Start for Complete Beginners

Pages
84
Chapters
32
Level
Beginner
Format
E-book

About this book

You do not need a computer-science degree to work with AI in code. You need a solid grasp of a small part of Python and the confidence to experiment. This book provides both.

Starting from the very beginning, it covers variables, lists, dictionaries, loops, functions and files, then moves to working with data in tables, making charts, calling web APIs and using a language model from code. Every concept comes with a short example you can type and run, and every chapter ends with exercises and solutions.

By the end you will have written small but genuinely useful programs, such as a document summariser and a data-cleaning script.

What you will learn

  • Python basics from zero: values, lists, dictionaries, loops and functions
  • Reading and writing files, CSV and JSON
  • Exploring and cleaning tabular data
  • Making simple charts
  • Calling web APIs and language models from code
  • Writing small, useful AI tools safely

Table of contents

  1. IntroductionIntroduction
  2. Chapter 1Why Python, and How to Start
  3. Chapter 2Running Your First Program
  4. Chapter 3Values, Variables and Types
  5. Chapter 4Text: Strings
  6. Chapter 5Numbers and Arithmetic
  7. Chapter 6Lists
  8. Chapter 7Dictionaries
  9. Chapter 8Making Decisions: if
  10. Chapter 9Repeating: Loops
  11. Chapter 10Functions
  12. Chapter 11Errors and Debugging
  13. Chapter 12Modules and Packages
  14. Chapter 13Files
  15. Chapter 14CSV Data
  16. Chapter 15JSON
  17. Chapter 16Tables With pandas
  18. Chapter 17Cleaning Data
  19. Chapter 18Summarising and Grouping
  20. Chapter 19Charts
  21. Chapter 20Calling Web APIs
  22. Chapter 21Keeping Secrets Safe
  23. Chapter 22Calling a Language Model
  24. Chapter 23Project: A Document Summariser
  25. Chapter 24Project: Cleaning a Messy Spreadsheet
  26. Chapter 25Project: Classifying Feedback
  27. Chapter 26Dates and Times
  28. Chapter 27Finding Patterns in Text
  29. Chapter 28Retries, Rate Limits and Batching
  30. Chapter 29Project: Answering Questions From Your Documents
  31. Chapter 30Writing Code With an AI Assistant
  32. Chapter 31Good Habits: Readability, Testing and Version Control
  33. Chapter 32Where to Go Next
  34. AppendixExercise Solutions
  35. GlossaryGlossary

Who this book is for

Complete beginners, analysts and professionals who want to start coding for AI and data. No prior programming experience required.

Details

FormatPDF + web edition
Length84 pages (approx.)
Chapters32
LevelBeginner
LanguageEnglish
TopicProgramming
AuthorLatent Library Editorial

Keep reading

You may also like

All books
$11.99
Details