Python 3.14
Learn Python the modern way — from your first line of code to real-world projects.
Python 3.14 is one of the most significant releases in years: an officially supported free-threaded build that runs without the Global Interpreter Lock, template strings (t-strings), deferred evaluation of annotations, remote debugging and a faster interpreter. This book teaches the language as it is today, with every example written and checked for Python 3.14.
What you will learn
The fundamentals: variables, data types, flow control, loops, functions and modular programming, explained from scratch for absolute beginners.
Data structures and object-oriented programming: lists, tuples, dictionaries, sets, classes, inheritance, magic methods and protocols.
Advanced Python: decorators, generators, context managers, descriptors, metaclasses, concurrency, memory management and the new free-threaded build.
Robust code: exception handling (including ExceptionGroup and except*), file and resource management, and working with JSON, pickle and TOML.
The ecosystem: the standard library, packaging, and modern tooling such as uv and pyproject.toml.
Web development: building applications with Django and Flask — views, templates, forms, security, ORMs and API endpoints.
Data science and machine learning: Pandas, data cleaning and visualization, scikit-learn, and an introduction to deep learning with TensorFlow and Keras.
Appendices you will keep coming back to
- What's new in Python 3.12 to 3.14, chapter by chapter
- A quick guide to uv
- A migration checklist for moving existing projects to Python 3.14
- A Python syntax cheat sheet
- A glossary of technical terms and a list of resources for going further
Who is this book for?
Beginners who want a complete, structured path into Python; self-taught developers who want to fill the gaps; and experienced programmers coming from other languages or from older versions of Python who want a clear picture of what has changed and how to use it.
About the author
Franky Bonanno is a software developer and entrepreneur based in Catania, Sicily, with more than twenty years of experience in IT. He builds and maintains software platforms in Python and Django.