Professional Documents
Culture Documents
PDF Beyond The Basic Stuff With Python 1St Edition Al Sweigart Ebook Full Chapter
PDF Beyond The Basic Stuff With Python 1St Edition Al Sweigart Ebook Full Chapter
Edition Al Sweigart
Visit to download the full and correct content document:
https://textbookfull.com/product/beyond-the-basic-stuff-with-python-1st-edition-al-swei
gart/
More products digital (pdf, epub, mobi) instant
download maybe you interests ...
https://textbookfull.com/product/automate-the-boring-stuff-with-
python-2nd-edition-practical-programming-for-total-beginners-al-
sweigart/
https://textbookfull.com/product/invent-your-own-computer-games-
with-python-al-sweigart/
https://textbookfull.com/product/invent-your-own-computer-games-
with-python-4th-edition-al-sweigart/
https://textbookfull.com/product/basic-exercises-for-competitive-
programming-python-1st-edition-jan-pol/
Programming Microcontrollers with Python: Experience
the Power of Embedded Python 1st Edition Armstrong
Subero
https://textbookfull.com/product/programming-microcontrollers-
with-python-experience-the-power-of-embedded-python-1st-edition-
armstrong-subero/
https://textbookfull.com/product/programming-microcontrollers-
with-python-experience-the-power-of-embedded-python-1st-edition-
armstrong-subero-2/
https://textbookfull.com/product/dealing-with-the-tough-stuff-
how-to-achieve-results-from-key-conversations-hill/
https://textbookfull.com/product/the-python-book-the-ultimate-
guide-to-coding-with-python-imagine-publishing/
https://textbookfull.com/product/good-stuff-1st-edition-salman-
akhtar/
CONTENTS IN DETAIL
ACKNOWLEDGMENTS
INTRODUCTION
Who Should Read This Book and Why
About This Book
Your Programming Journey
Examining Tracebacks
Searching for Error Messages
Paths in Python
The Home Directory
The Current Working Directory
Absolute vs. Relative Paths
Installing Black
Running Black from the
Command Line
Disabling Black for Parts of Your
Code
Summary
CHAPTER 4: CHOOSING
UNDERSTANDABLE NAMES
Casing Styles
PEP 8’s Naming Conventions
Appropriate Name Length
Too Short Names
Too Long Names
Formatting Strings
Use Raw Strings If Your String
Has Many Backslashes
Format Strings with F-Strings
Definitions
Python the Language and Python
the Interpreter
Garbage Collection
Literals
Keywords
Objects, Values, Instances, and
Identities
Items
Mutable and Immutable
Indexes, Keys, and Hashes
Containers, Sequences, Mapping,
and Set Types
Dunder Methods and Magic
Methods
Modules and Packages
Callables and First-Class Objects
Default Arguments
Using * and ** to Pass
Arguments to Functions
Using * to Create Variadic
Functions
Using ** to Create Variadic
Functions
Using * and ** to Create
Wrapper Functions
Functional Programming
Side Effects
Higher-Order Functions
Lambda Functions
Mapping and Filtering with List
Comprehensions
Return Values Should Always Have the
Same Data Type
Raising Exceptions vs. Returning Error
Codes
Summary
CHAPTER 11: COMMENTS, DOCSTRINGS,
AND TYPE HINTS
Comments
Comment Style
Inline Comments
Explanatory Comments
Summary Comments
“Lessons Learned” Comments
Legal Comments
Professional Comments
Codetags and TODO Comments
Magic Comments and Source File
Encoding
Docstrings
Type Hints
Summary
CHAPTER 12: ORGANIZING YOUR CODE
PROJECTS WITH GIT
Git Commits and Repos
Using Cookiecutter to Create New Python
Projects
Installing Git
Configuring Your Git Username
and Email
Installing GUI Git Tools
Summary
INDEX
BEYOND THE BASIC STUFF
WITH PYTHON
San Francisco
BEYOND THE BASIC STUFF WITH PYTHON. Copyright © 2021 by Al
Sweigart.
No Starch Press and the No Starch Press logo are registered trademarks of
No Starch Press, Inc. Other product and company names mentioned herein
may be the trademarks of their respective owners. Rather than use a
trademark symbol with every occurrence of a trademarked name, we are
using the names only in an editorial fashion and to the benefit of the
trademark owner, with no intention of infringement of the trademark.
For my nephew Jack
About the Author
Al Sweigart is a software developer and tech book author living
in Seattle. Python is his favorite programming language, and he
is the developer of several open source modules for it. His other
books are freely available under a Creative Commons license on
his website at https://www.inventwithpython.com/. His cat
Zophie weighs 11 pounds.
Several larvae are well known; indeed the "wire-worms" that are
sometimes so abundant in cultivated places are larvae of Elateridae.
In this instar the form is usually elongate and nearly cylindrical; the
thoracic segments differ but little from the others except that they
bear rather short legs; the skin is rather hard, and usually bears
punctuation or sculpture; the body frequently terminates in a very
hard process, of irregular shape and bearing peculiar sculpture on its
upper surface, while beneath it the prominent anal orifice is placed:
this is sometimes furnished with hooks, the function of which has not
yet been observed. The majority of these larvae live in decaying
wood, but some are found in the earth; as a rule the growth is
extremely slow, and the life of the larva may extend over two or more
years. Some obscurity has prevailed as to their food; it is now
considered to be chiefly flesh, though some species probably attack
decaying roots; and it is understood that wire-worms destroy the
living roots, or underground stems, of the crops they damage.
Various kinds of Myriapods (see Vol. V. p. 29) are often called "wire-
worm," but they may be recognised by possessing more than six
legs. The larvae of the genus Cardiophorus are very different, being
remarkably elongate without the peculiar terminal structure, but
apparently composed of twenty-three segments.
Tarsi of the front and middle legs with five, those of the hind legs with
four, joints.