Python Crash Course 3rd Edition Eric Matthes download
Python Crash Course 3rd Edition Eric Matthes download
download
https://ebookmeta.com/product/python-crash-course-3rd-edition-
eric-matthes/
https://ebookmeta.com/product/python-crash-course-3rd-edition-
eric-matthes-4/
https://ebookmeta.com/product/python-crash-course-3rd-edition-
eric-matthes-3/
https://ebookmeta.com/product/python-crash-course-3rd-edition-
eric-matthes-5/
https://ebookmeta.com/product/midnight-deception-
bloodlines-3-1st-edition-erin-o-kane/
I love Jesus, but I want to die : finding hope in the
darkness of depression 1st Edition Sarah J. Robinson
https://ebookmeta.com/product/i-love-jesus-but-i-want-to-die-
finding-hope-in-the-darkness-of-depression-1st-edition-sarah-j-
robinson/
https://ebookmeta.com/product/frantz-fanons-psychotherapeutic-
approaches-to-clinical-work-practicing-internationally-with-
marginalized-communities-1st-edition-lou-turner-and-helen-a-
neville/
https://ebookmeta.com/product/data-visualization-exploring-and-
explaining-with-data-jeffrey-d-camm/
https://ebookmeta.com/product/lindens-handbook-of-batteries-5th-
edition-kirby-w-beard/
https://ebookmeta.com/product/depicting-dante-in-anglo-italian-
literary-and-visual-arts-allegory-authority-and-authenticity-1st-
edition-christoph-lehner/
MILF Too Close for Comfort 1st Edition Anya Merchant
https://ebookmeta.com/product/milf-too-close-for-comfort-1st-
edition-anya-merchant/
CONTENTS IN DETAIL
TITLE PAGE
COPYRIGHT
DEDICATION
ACKNOWLEDGMENTS
INTRODUCTION
Who Is This Book For?
What Can You Expect to Learn?
Online Resources
Why Python?
PART I: BASICS
CHAPTER 1: GETTING STARTED
Setting Up Your Programming Environment
Python Versions
Running Snippets of Python Code
About the VS Code Editor
Python on Different Operating Systems
Python on Windows
Python on macOS
Python on Linux
Running a Hello World Program
Installing the Python Extension for VS Code
Running hello_world.py
Troubleshooting
Running Python Programs from a Terminal
On Windows
On macOS and Linux
Exercise 1-1: python.org
Exercise 1-2: Hello World Typos
Exercise 1-3: Infinite Skills
Summary
CHAPTER 5: IF STATEMENTS
A Simple Example
Conditional Tests
Checking for Equality
Ignoring Case When Checking for Equality
Checking for Inequality
Numerical Comparisons
Checking Multiple Conditions
Checking Whether a Value Is in a List
Checking Whether a Value Is Not in a List
Boolean Expressions
Exercise 5-1: Conditional Tests
Exercise 5-2: More Conditional Tests
if Statements
Simple if Statements
if-else Statements
The if-elif-else Chain
Using Multiple elif Blocks
Omitting the else Block
Testing Multiple Conditions
Exercise 5-3: Alien Colors #1
Exercise 5-4: Alien Colors #2
Exercise 5-5: Alien Colors #3
Exercise 5-6: Stages of Life
Exercise 5-7: Favorite Fruit
Using if Statements with Lists
Checking for Special Items
Checking That a List Is Not Empty
Using Multiple Lists
Exercise 5-8: Hello Admin
Exercise 5-9: No Users
Exercise 5-10: Checking Usernames
Exercise 5-11: Ordinal Numbers
Styling Your if Statements
Exercise 5-12: Styling if Statements
Exercise 5-13: Your Ideas
Summary
CHAPTER 6: DICTIONARIES
A Simple Dictionary
Working with Dictionaries
Accessing Values in a Dictionary
Adding New Key-Value Pairs
Starting with an Empty Dictionary
Modifying Values in a Dictionary
Removing Key-Value Pairs
A Dictionary of Similar Objects
Using get() to Access Values
Exercise 6-1: Person
Exercise 6-2: Favorite Numbers
Exercise 6-3: Glossary
Looping Through a Dictionary
Looping Through All Key-Value Pairs
Looping Through All the Keys in a Dictionary
Looping Through a Dictionary’s Keys in a Particular Order
Looping Through All Values in a Dictionary
Exercise 6-4: Glossary 2
Exercise 6-5: Rivers
Exercise 6-6: Polling
Nesting
A List of Dictionaries
A List in a Dictionary
A Dictionary in a Dictionary
Exercise 6-7: People
Exercise 6-8: Pets
Exercise 6-9: Favorite Places
Exercise 6-10: Favorite Numbers
Exercise 6-11: Cities
Exercise 6-12: Extensions
Summary
CHAPTER 8: FUNCTIONS
Defining a Function
Passing Information to a Function
Arguments and Parameters
Exercise 8-1: Message
Exercise 8-2: Favorite Book
Passing Arguments
Positional Arguments
Keyword Arguments
Default Values
Equivalent Function Calls
Avoiding Argument Errors
Exercise 8-3: T-Shirt
Exercise 8-4: Large Shirts
Exercise 8-5: Cities
Return Values
Returning a Simple Value
Making an Argument Optional
Returning a Dictionary
Using a Function with a while Loop
Exercise 8-6: City Names
Exercise 8-7: Album
Exercise 8-8: User Albums
Passing a List
Modifying a List in a Function
Preventing a Function from Modifying a List
Exercise 8-9: Messages
Exercise 8-10: Sending Messages
Exercise 8-11: Archived Messages
Passing an Arbitrary Number of Arguments
Mixing Positional and Arbitrary Arguments
Using Arbitrary Keyword Arguments
Exercise 8-12: Sandwiches
Exercise 8-13: User Profile
Exercise 8-14: Cars
Storing Your Functions in Modules
Importing an Entire Module
Importing Specific Functions
Using as to Give a Function an Alias
Using as to Give a Module an Alias
Importing All Functions in a Module
Styling Functions
Exercise 8-15: Printing Models
Exercise 8-16: Imports
Exercise 8-17: Styling Functions
Summary
CHAPTER 9: CLASSES
Creating and Using a Class
Creating the Dog Class
The __init__() Method
Making an Instance from a Class
Exercise 9-1: Restaurant
Exercise 9-2: Three Restaurants
Exercise 9-3: Users
Working with Classes and Instances
The Car Class
Setting a Default Value for an Attribute
Modifying Attribute Values
Exercise 9-4: Number Served
Exercise 9-5: Login Attempts
Inheritance
The __init__() Method for a Child Class
Defining Attributes and Methods for the Child Class
Overriding Methods from the Parent Class
Instances as Attributes
Modeling Real-World Objects
Exercise 9-6: Ice Cream Stand
Exercise 9-7: Admin
Exercise 9-8: Privileges
Exercise 9-9: Battery Upgrade
Importing Classes
Importing a Single Class
Storing Multiple Classes in a Module
Importing Multiple Classes from a Module
Importing an Entire Module
Importing All Classes from a Module
Importing a Module into a Module
Using Aliases
Finding Your Own Workflow
Exercise 9-10: Imported Restaurant
Exercise 9-11: Imported Admin
Exercise 9-12: Multiple Modules
The Python Standard Library
Exercise 9-13: Dice
Exercise 9-14: Lottery
Exercise 9-15: Lottery Analysis
Exercise 9-16: Python Module of the Week
Styling Classes
Summary