Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Python Illustrated

You're reading from   Python Illustrated Not another boring Python book, learn programming the fun way

Arrow left icon
Product type Paperback
Published in Feb 2026
Publisher Packt
ISBN-13 9781836646334
Length 432 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Maaike van Putten Maaike van Putten
Author Profile Icon Maaike van Putten
Maaike van Putten
Imke van Putten Imke van Putten
Author Profile Icon Imke van Putten
Imke van Putten
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Introduction
2. Get Your Computer Ready to Code Python FREE CHAPTER 3. Understanding Variables and Data Types 4. Working with Conditional Statements 5. Using Lists, Tuples, and Dictionaries 6. Iterating with Loops 7. Writing Functions and Using Built-In Functions 8. Handling Files and Exceptions 9. Creating and Using Classes 10. Understanding Inheritance 11. Debugging Our Code 12. Next Steps 13. Unlock Your Exclusive Benefits 14. Other Books You May Enjoy
15. Index
Appendix A: Exercise Files 1. Appendix B: Quiz Answers 2. Appendix C: Exercise Solutions

Introduction

Hi, my name is Zia.

Yes, I’m a cat.

You might think that cats have no business writing books on Python. Well, you’re wrong. If you own a cat, you might know that we love to be on your keyboard. Partly because it’s warm (yes, it feels really good, not going to lie), but also because we love to type all sorts of things.

My human is a teacher in the tech space. She accidentally taught me Python while I was on her lap during her lessons. Fast forward to now, and I’m employed (100% remotely, of course) at a big tech company. I cannot tell you which one because I’ve signed an NDA. Also, I always use my human filter on Zoom and they cannot know I’m a cat. I’ve tested the waters with HR, and exposing that secret would get me fired.

Oh right, one more person I need to introduce.

Wiesje is here too. It’s a Dutch name, you’d pronounce it something like Weesha. She is the cutest dachshund dog, and I’m proud to say that she’s my cousin. Not sure why, but she doesn’t seem to share the joy of us being related and can come across a little grumpy.

Once you get to know her better, you’ll find that she’s actually very sweet. She can’t code Python yet, so she’ll join you in the learning process.

Anyways, Python is easy, and I can teach you. But wait… What even is Python? Python is a programming language. A programming language is a set of instructions that can be used to communicate with computers. Just like how we use English to talk to each other, we use programming languages to tell computers what to do. Python is one of the easiest languages to learn and use, which makes it great for beginners.

To give you some more concrete examples, here are a few things you can do with a programming language:

  • Automating repetitive tasks such as renaming files
  • Making applications, for example a calculator
  • Creating a game, just to name something… a number guessing game

Spoiler alert! We are going to do all of these things in this book (and more of course). Here’s an overview of the things we’re going to do:

  • Get your computer ready to code Python
  • Understading variables and data types
  • Working with conditional statements
  • Using lists, tuples, and dictionaries
  • Iterating with loops
  • Writing functions and using built-in functions
  • Handling files and exceptions
  • Creating and using classes
  • Understanding inheritance
  • Debugging our code
  • Next steps

Okay, time’s valuable, let’s get started getting your computer ready to code.

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Python Illustrated
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon