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

Summary

That was Chapter 6 already! Time for a little recap. In this chapter, we discovered the magic spells in Python: functions. Functions are snippets of code that you can run by calling their name. Calling a function can also be called invoking a function. This comes in handy when we want to reuse blocks of code throughout programs. Without functions, there would be a lot of duplicate code. They make your code base more readable and easier to maintain.

A function is declared with the keyword def, followed by the function name and parentheses. You could pass parameters into these parentheses if you feel like your function needs them, but some functions work just fine without them. Parameters are placeholders for values you pass in when you call the function. Look at this simple example where we passed in the parameter name:

def praise_dog(name):
    print(f"{name} is a good dog!")

The code inside a function will not run unless you call the function. To call...

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