“This comprehensive, well-written book covers the programming language Python in great depth … . It is better suited for those with previous programming experience and an awareness of programming paradigms and concepts.” (Michael Oudshoorn, Computing Reviews, August 5, 2021)
Setting up the Python Environment.- A First Python Program.- Python Strings.- Numbers, Booleans and None.- Flow of Control using if statements.- Number Guessing Game.- Recursion.- Introduction to Structured Analysis.- Functions in Python.- Implementing a Calculator using Functions.- Introduction to Functional Programming.- Curried Functions.- Introduction to Object Orientation.- Class Side and Static Behaviour.- Why Bother with Object Orientation?.- Operator Overloading.- Error and Exception Handling.- Python Modules and Packages.- Abstract Base Classes.- Protocols, Polymorphism and Descriptors.- Iterables, Iterators, Generators and Coroutines.- Collection Related Modules.- ADTs, Queues and Stacks.- Map, Filter and Reduce.- TicTacToe Game.
John Hunt is a technology trainer, consultant, mentor and author who has 35 years experience within the computing industry. He has worked extensively in Object Oriented and Functional technologies using language from Java through C# to Scala and of course Python. John was first involved with Python while working with a FinTech company in 2010. Since then he has been involved in numerous Python projects and has worked with a number of companies helping to develop their Python skills.
This textbook on Python 3 explains concepts such as variables and what they represent, how data is held in memory, how a for loop works and what a string is. It also introduces key concepts such as functions, modules and packages as well as object orientation and functional programming. Each section is prefaced with an introductory chapter, before continuing with how these ideas work in Python.
Topics such as generators and coroutines are often misunderstood and these are explained in detail, whilst topics such as Referential Transparency, multiple inheritance and exception handling are presented using examples.
A Beginners Guide to Python 3 Programming provides all you need to know about Python, with numerous examples provided throughout including several larger worked case studies illustrating the ideas presented in the previous chapters.