This color edition is ideal for viewing color coding in expressions.
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.
Cathy Young is a columnist for The Boston Globe and Reason, an author and a public speaker.
Born in Moscow, Russia in 1963, Young came to the United States with her family in 1980. She received her B.A. degree in English from Rutgers University in 1988, where she was admitted to Phi Beta Kappa.
Young is the author of two books: Ceasefire!: Why Women and Men Must Join Forces to Achieve True Equality (The Free Press, February 1999), and Growing Up in Moscow: Memories of a Soviet Girlhood (Ticknor & Fields, 1989). She also contributed the essay, "Keeping Women Weak," to Next: Young American Writers on the New Generation (Eric Liu, ed.). W. W. Norton & Co., 1994. As a research associate at the Cato Institute, she co-authored, with Michael Weiss, Esq., the 1996 policy analysis, "Feminist Jurisprudence: Equal Rights or Neo-Paternalism?"
Since September 2000, Young has been a regular op-ed columnist for The Boston Globe. She also writes a monthly column for Reason magazine. From 1993 to 1999, she was a weekly columnist for the Detroit News. Her columns, book reviews, and feature articles have appeared in many publications including New York Times, The Wall Street Journal, The Washington Post, The Philadelphia Inquirer, Newsday, The American Spectator, Salon.Com, National Review, and The New Republic.
Young's television appearances have included The Today Show (NBC); Crier & Company, Inside Business (CNN); This is America!, To the Contrary, and Uncommon Knowledge (PBS); Washington Journal (C-Span); Judith Regan Tonight and The O'Reilly Factor (Fox News Channel). Radio appearances have included Talk of the Nation and Radio Times (National Public Radio) and numerous shows on stations across the United States.
Young has spoken before the Commonwealth Club of San Francisco; at the Sex Wars Conference (Institute of Contemporary Arts, London); the Freedom School (Freedom Communications Media Conference); the Children's Rights Council; the New School for Social Research; The Pacific Research Institute; and the Cato Institute. She has also appeared at colleges and universities including Boston College Law School, Georgetown University Law School, Stanford Law School; Boalt Hall Law School (University of California-Berkeley); University of North Carolina Law School; Northwestern University Law School; and University of Michigan Law School.