Book descriptionBasic computer programming can be intimidating to anyone who has ever attempted to write their first line of code. Idiot's Guides: Basic Programming takes the fear out of learning programming by teaching readers the basics of programming with Python, an open-source (free) environment which is considered one of the easiest languages to learn for beginners, Python has consistent syntax, a solid standardized library, and a simplicity that isn't always present in other languages. Readers will learn not only the "how" of programming but the "why" so that they not only know how to write code, but why that code works, and how it relates to other languages and forms of programming. Readers will learn how to program through simple projects that help them to learn how basic programming works, while encouraging them to be creative and enabling them to see the tangible results of their coding.
Table of contents
- Title Page
- Copyright Page
Part 1: Background on Computers and Terminology
- 1 So You Want to Program Computers
2 Programming with Python
- What Is Python?
- Installing Python on Your Computer
- Finding All the Little Pieces
- The IDLE Programming Editor
- Using Packages to Augment Your Programming
- Miscellaneous Tools for Programmers
- 3 Your First Python Program
Part 2: Learning Python
- 4 Variables
- 5 Conditional Programming
- 6 Loops
- What Are Arrays?
- Creating an Array in Python
- Working with Individual Array Elements
- Arrays as Stacks
- Converting an Array to a List
- Removing Data from an Array
- Determining the Number of Elements in an Array
- Finding an Array Element
- Adding and Extending Arrays
- Adding New Elements to an Array
- Slicing Arrays and Other Sequences
- Multidimensional Lists
- 8 String Basics
9 The New Way of Strings
- New-Style Formatting
- Arguments and Positioning
- Formatting Output
- Miscellaneous String Formatting Options
Part 3: Basic Programming Concepts
- What Is a Function?
- Determining a Function
- What Do You Know? What Don’t You Know?
- Coding by Comment
- Turning It into a Function
- Using the Function
- Yes, It’s a Function, but Is It a Good Function?
- Redesigning the Function
- Named Function Arguments
- A Word About Scope
- 11 Does Anybody Really Know What Time It Is?
12 Error Handling, or When Things Go Terribly Wrong
- Errors Defined
- Kinds of Information and Their Relation to Errors
- How Are Errors Propagated?
- Raising Exceptions
- Using Error Codes
- Dealing with Errors in Functions
- Type-Safe Conversions Using Exceptions
- 13 Files, Directories, and Other Things That Persist
14 Programming with Class(es)
- The Principles of Object-Oriented Programming
- Classes and Objects
- The Life and Times of a Class Object
- Class Variable Accessibility
- Deriving Child Classes
- Overriding Functionality in a Child Class
- Multiple Inheritance
- Embedding Classes
- Dynamic Attributes
- 10 Functions
- Part 4: Working with the Python Environment
16 Packages and Modules
- Reusing Code
- Creating a Module
- What Else Can I Do with My Module?
- Module Limitations and Issues
- Creating a Package
- What Is in a Package?
- How Do I Use the Function?
17 Designing Programs
- The Art of Program Design
- Requirements for Program Design
- Breaking Down Requirements
- Working with Users on Designing a Program
- The Layers of a Program
- Designing a Complex Application
- Final Thoughts on Design
- What Is Testing?
- Different Kinds of Testing
- Examples of Testing
- What Does Testing Produce?
- Complex Testing
- Physical vs. Logical Errors
- When Have You Done Enough Testing?
19 The Python Debugger and Debugging
- What Is Debugging?
- How to Debug a Python Program
- Instrumenting Code to Be Debugged
- Moving Through the Code
- Stepping Line by Line Through the Code
- Examining Values in the Debugger
- Modifying Values in the Debugger
- Where Am I?
- Dealing with Functions
- Using the Debugger to Evaluate Functions
- Changing a Variable in the Debugger
- Exiting the Debugger
- Final Thoughts on Programming
- Title: Beginning Programming
- Release date: August 2014
- Publisher(s): Alpha
- ISBN: 9781615645473
You might also like
Automate the Boring Stuff with Python, 2nd Edition
If you’ve ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how …
Codeless Data Structures and Algorithms : Learn DSA Without Writing a Single Line of Code
In the era of self-taught developers and programmers, essential topics in the industry are frequently learned …
Python Crash Course, 2nd Edition
This is the second edition of the best selling Python book in the world. Python Crash …
Sharpen your Python skills as you dive deep into the Python programming language with Serious Python. …