Jump to ratings and reviews
Rate this book

Python Coding - One Year Later: A Treasure Trove of Practical and Simple Examples

Rate this book
The primary goal of this book is to learn the simple basics of debugging a Python script so your code runs as expected. Debugging is the process of finding and removing "bugs" or defects in a program, and it is also useful in getting your code to run in the first place! Chapter 3 presents "Python Basics" because a big part of debugging is knowing the correct syntax for a particular object and task. This book doesn't try to cover all the nuances of Python but does cover the terms and syntax you're likely to encounter in your first few weeks or months of programming. The overhead and clutter are gone, leaving behind clear and simple instructions. Code examples are self-contained, so you can copy and paste them into your IDE and run the program. There are certainly more elegant ways to do many of these tasks, but I wanted to demonstrate each concept with a working piece of code limited to a few lines. In Chapter 3, we'll look at the following topics and more. There are dozens of diagrams that explain concepts such as indexing, slicing, scope, or recursive functions. We'll look at syntax relevant to each type of object. For example, to add to a "list," you could use 'append,' 'join' or 'extend' methods. While adding a new pair to a dictionary is straightforward, adding to an existing dictionary can be confusing. The"type" of object in the pair determines which methods you'll use to add, update, or delete objects. There are over 50 real-world code examples . Between the detailed Table of Contents and extensive Index, you can quickly find answers. The Index includes common phrases for those times when you don't know the technical term. For example, to find a string in Python, you could use the "in" comparison operator. Whether you look for "find" or "search," the Index refers you to the "in" comparison operator. The examples are varied so you can work with different types of data, such XML, HTML, matplotlib (plots/charts/graphs), OS (files/directories), *.txt, *.csv, user input, or dates.

356 pages, Paperback

Published January 10, 2022

1 person want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (100%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.