Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Python Illustrated
  • Table Of Contents Toc
Python Illustrated

Python Illustrated

By : Maaike van Putten, Imke van Putten
close
close
Python Illustrated

Python Illustrated

By: Maaike van Putten, Imke van Putten

Overview of this book

This is not your average Python programming book, because the world doesn’t need another one of those. Instead, it’s an illustrated, fun, and hands-on guide that treats learning Python like the adventure it should be. It’s designed especially for beginners who want to understand how code works without getting overwhelmed. You’ll be guided by a cheeky, know-it-all cat who’s surprisingly good at teaching Python from scratch. Don’t worry about going through it alone; a slightly moody dachshund dog is your study buddy, learning right alongside you. Each chapter introduces a core programming concept, explains it with a playful twist, and reinforces it through human-friendly examples, analogies, and exercises. Whether you’re a software professional or someone who’s never written a single line of code, this book will help you build real Python coding skills… and even enjoy the process (shocking, right?). Forget dry tutorials and walls of text. Python Illustrated speaks to visual learners, creative thinkers, cat lovers, dog lovers, and anyone who prefers their learning with a dash of humor. From writing your first function to understanding object-oriented programming, you’ll build a solid foundation in Python (without the usual headaches).
Table of Contents (19 chapters)
close
close
Lock Free Chapter
1
Introduction
14
Other Books You May Enjoy
15
Index
1
Appendix A: Exercise Files

Lists

The first type of collection we’ll discuss is lists. A list is probably the most straightforward data type. It’s an ordered collection of items that can be changed. It’s like having a basket where you can toss in your toys, snacks, or anything else you fancy. The items in a list can be of different types. You may wonder what types can be on the list? Well, any type! They could, for example, be numbers, strings, or even other lists! Let’s see how to make them.

Creating lists

We create a list in a similar way to creating another variable. We specify a name followed by an equal sign and then the value. The value is the part where it’s a little different. To create an empty list, you simply use square brackets [] without any items inside.

# An empty list
my_first_list = []

This creates a list called my_first_list that currently holds no items. Soon I’ll tell you how to add items, but let’s first see how we can...

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
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon