NMC Library
Image from Google Jackets

Python crash course : a hands-on, project-based introduction to programming / by Eric Matthes.

By: Publisher: San Francisco, CA : No Starch Press, Inc., [2019]Edition: 2nd editionDescription: 1 online resourceContent type:
  • text
Media type:
  • computer
Carrier type:
  • online resource
ISBN:
  • 1593279299
  • 9781593279295
Subject(s): Genre/Form: Additional physical formats: Print version:: Python Crash Course, 2nd EditionDDC classification:
  • 005.13/3 23
LOC classification:
  • QA76.73.P98 M38 2019
Online resources:
Contents:
Intro; Brief Contents; Contents in Detail; Preface to the Second Edition; 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 Sublime Text Editor; Python on Different Operating Systems; Python on Windows; Python on macOS; Python on Linux; Running a Hello World Program; Configuring Sublime Text to Use the Correct Python Version; Running hello_world.py; Troubleshooting
Running Python Programs from a TerminalOn Windows; On macOS and Linux; Summary; Chapter 2: Variables and Simple Data Types; What Really Happens When You Run hello_world.py; Variables; Naming and Using Variables; Avoiding Name Errors When Using Variables; Variables Are Labels; Strings; Changing Case in a String with Methods; Using Variables in Strings; Adding Whitespace to Strings with Tabs or Newlines; Stripping Whitespace; Avoiding Syntax Errors with Strings; Numbers; Integers; Floats; Integers and Floats; Underscores in Numbers; Multiple Assignment; Constants; Comments
How Do You Write Comments?What Kind of Comments Should You Write?; The Zen of Python; Summary; Chapter 3: Introducing Lists; What Is a List?; Accessing Elements in a List; Index Positions Start at 0, Not 1; Using Individual Values from a List; Changing, Adding, and Removing Elements; Modifying Elements in a List; Adding Elements to a List; Removing Elements from a List; Organizing a List; Sorting a List Permanently with the sort() Method; Sorting a List Temporarily with the sorted() Function; Printing a List in Reverse Order; Finding the Length of a List
Avoiding Index Errors When Working with ListsSummary; Chapter 4: Working with Lists; Looping Through an Entire List; A Closer Look at Looping; Doing More Work Within a for Loop; Doing Something After a for Loop; Avoiding Indentation Errors; Forgetting to Indent; Forgetting to Indent Additional Lines; Indenting Unnecessarily; Indenting Unnecessarily After the Loop; Forgetting the Colon; Making Numerical Lists; Using the range() Function; Using range() to Make a List of Numbers; Simple Statistics with a List of Numbers; List Comprehensions; Working with Part of a List; Slicing a List
Looping Through a SliceCopying a List; Tuples; Defining a Tuple; Looping Through All Values in a Tuple; Writing over a Tuple; Styling Your Code; The Style Guide; Indentation; Line Length; Blank Lines; Other Style Guidelines; 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; if Statements; Simple if Statements; if-else Statements
Summary: Second edition of the best selling Python book in the world. A fast-paced, no-nonsense guide to programming in Python. This book teaches beginners the basics of programming in Python with a focus on real projects. This is the second edition of the best selling Python book in the world. Python Crash Course, 2nd Edition is a straightforward introduction to the core of Python programming. Author Eric Matthes dispenses with the sort of tedious, unnecessary information that can get in the way of learning how to program, choosing instead to provide a foundation in general programming concepts, Python fundamentals, and problem solving. Three real world projects in the second part of the book allow readers to apply their knowledge in useful ways. Readers will learn how to create a simple video game, use data visualization techniques to make graphs and charts, and build and deploy an interactive web application. Python Crash Course, 2nd Edition teaches beginners the essentials of Python quickly so that they can build practical programs and develop powerful programming techniques.
Holdings
Item type Current library Collection Shelving location Call number Copy number Status Date due Barcode Course reserves
Ebook Ebook NMC Library EBSCO Ebooks Online QA76.73.P98 M38 2019 EBOOK (Browse shelf(Opens below)) 1 Available online - NMC Login required 2021-1026

Advanced Database Systems

Intro; Brief Contents; Contents in Detail; Preface to the Second Edition; 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 Sublime Text Editor; Python on Different Operating Systems; Python on Windows; Python on macOS; Python on Linux; Running a Hello World Program; Configuring Sublime Text to Use the Correct Python Version; Running hello_world.py; Troubleshooting

Running Python Programs from a TerminalOn Windows; On macOS and Linux; Summary; Chapter 2: Variables and Simple Data Types; What Really Happens When You Run hello_world.py; Variables; Naming and Using Variables; Avoiding Name Errors When Using Variables; Variables Are Labels; Strings; Changing Case in a String with Methods; Using Variables in Strings; Adding Whitespace to Strings with Tabs or Newlines; Stripping Whitespace; Avoiding Syntax Errors with Strings; Numbers; Integers; Floats; Integers and Floats; Underscores in Numbers; Multiple Assignment; Constants; Comments

How Do You Write Comments?What Kind of Comments Should You Write?; The Zen of Python; Summary; Chapter 3: Introducing Lists; What Is a List?; Accessing Elements in a List; Index Positions Start at 0, Not 1; Using Individual Values from a List; Changing, Adding, and Removing Elements; Modifying Elements in a List; Adding Elements to a List; Removing Elements from a List; Organizing a List; Sorting a List Permanently with the sort() Method; Sorting a List Temporarily with the sorted() Function; Printing a List in Reverse Order; Finding the Length of a List

Avoiding Index Errors When Working with ListsSummary; Chapter 4: Working with Lists; Looping Through an Entire List; A Closer Look at Looping; Doing More Work Within a for Loop; Doing Something After a for Loop; Avoiding Indentation Errors; Forgetting to Indent; Forgetting to Indent Additional Lines; Indenting Unnecessarily; Indenting Unnecessarily After the Loop; Forgetting the Colon; Making Numerical Lists; Using the range() Function; Using range() to Make a List of Numbers; Simple Statistics with a List of Numbers; List Comprehensions; Working with Part of a List; Slicing a List

Looping Through a SliceCopying a List; Tuples; Defining a Tuple; Looping Through All Values in a Tuple; Writing over a Tuple; Styling Your Code; The Style Guide; Indentation; Line Length; Blank Lines; Other Style Guidelines; 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; if Statements; Simple if Statements; if-else Statements

Includes index.

The if-elif-else Chain

Second edition of the best selling Python book in the world. A fast-paced, no-nonsense guide to programming in Python. This book teaches beginners the basics of programming in Python with a focus on real projects. This is the second edition of the best selling Python book in the world. Python Crash Course, 2nd Edition is a straightforward introduction to the core of Python programming. Author Eric Matthes dispenses with the sort of tedious, unnecessary information that can get in the way of learning how to program, choosing instead to provide a foundation in general programming concepts, Python fundamentals, and problem solving. Three real world projects in the second part of the book allow readers to apply their knowledge in useful ways. Readers will learn how to create a simple video game, use data visualization techniques to make graphs and charts, and build and deploy an interactive web application. Python Crash Course, 2nd Edition teaches beginners the essentials of Python quickly so that they can build practical programs and develop powerful programming techniques.

Powered by Koha