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

Documentation and docstrings

Documentation is a description of what your code is for. This is a must-have for applications that you’re writing. Documentation has to be written in a clear manner. Writing documentation helps everyone (including future you) understand what your function does, and that saves time! Also, it helps with debugging. We can do this with docstrings.

Writing good docstrings

A docstring is a string, surrounded by """, which is placed right inside your function definition. This special docstring describes the function’s purpose, parameters, and return value –for instance:

def area_of_circle(radius):
    # start of the docstring
    """
    Returns the area of a circle with a given radius.    Uses the formula pi * r^2.
    """     # end of the docstring
    import math
    return math.pi * radius * radius

If someone reads the function or uses it in an IDE, they’ll see the docstring...

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