Python Succinctly

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Learn to use the Python language to create programs of all kinds. Author Jason Cannon will guide you from complete unfamiliarity with Python to creating practical applications. With Python Succinctly, lack of experience isn't an obstacle to programming language mastery.

Author(s): Jason Cannon
Edition: First
Publisher: Createspace Independent Publishing Platform
Year: 2016

Language: English
Pages: 146
Tags: Python Succinctly

Table of Contents
The Story behind the Succinctly Series of Books
Information is plentiful but harder to digest
The Succinctly series
The best authors, the best content
Free forever
Free? What is the catch?
Let us know what you think
About the Author
Introduction
A Note on the Text
Getting Started
Configuring Your Environment for Python
Installing Python
Choosing Python 2 or Python 3
Windows Installation Instructions
Mac Installation Instructions
Linux Installation Instructions
Installing Python on Debian-Based Linux Distributions
Installing Python on RPM Based Linux Distributions
Preparing Your Computer for Python
Running Python Programs
Running Python Programs on Windows
Running Python Programs on Mac and Linux
Creating and Editing Python Source Code
Windows
Mac
Linux
Downloading the Source Code Examples
Review
Resources
Chapter 1 Variables and Strings
Variables
Strings
Using Quotes within Strings
Indexing
Built-in Functions
The print() Function
The len() Function
String Methods
The lower() String Method
The upper() String Method
String Concatenation
Repeating Strings
The str() Function
Formatting Strings
Getting User Input
Review
Exercises
Animal, Vegetable, Mineral
Solution
Copy Cat
Pig Speak
Solution
Resources
Chapter 2 Numbers, Math, and Comments
Numeric Operations
Strings and Numbers
The int() Function
The float() Function
Comments
Review
Exercises
Calculate the Cost of Cloud Hosting
Solution
Calculate the Cost of Cloud Hosting, Continued
Solution
Chapter 3 Booleans and Conditionals
Comparators
Boolean Operators
Conditionals
Review
Exercises
Walk, Drive, or Fly
Solution
Resources
Chapter 4 Functions
Review
Exercises
Fill in the Blank Word Game
Solution
Resources
Chapter 5 Lists
Adding Items to a List
Slices
String Slices
Finding an Item in a List
Exceptions
Looping through a List
Sorting a List
List Concatenation
Ranges
Review
Exercises
Grocery List
Solution
Resources
Chapter 6 Dictionaries
Adding Items to a Dictionary
Removing Items from a Dictionary
Finding a Key in a Dictionary
Finding a Value in a Dictionary
Looping through a Dictionary
Nesting Dictionaries
Review
Exercises
Interesting Facts
Solution
Resources
Chapter 7 Tuples
Switching between Tuples and Lists
Looping through a Tuple
Tuple Assignment
Review
Exercises
ZIP Codes
Solution
Resources
Chapter 8 File I/O
File Position
Closing a File
Automatically Closing a File
Reading a File One Line at a Time
File Modes
Writing to a File
Binary Files
Exceptions
Review
Exercises
Line Numbers
Solution
Alphabetize
Solution
Resources
Chapter 9 Modules
Modules
Peeking Inside a Module
The Module Search Path
The Python Standard Library
Creating Your Own Modules
Using main
Review
Exercises
Pig Speak, Redux
Solution
Resources
Conclusion
Appendix
Appendix A: Trademarks