<span>Written as an illustrated, step-by-step guide, this book will introduce you to Python with examples using the latest version of the language. <br>You'll begin by learning to set up your Python environment. The next few chapters cover the basics of Python such as language classifications, Pytho
The Absolute Beginner's Guide to Python Programming: A Step-by-Step Guide with Examples and Lab Exercises
✍ Scribed by Kevin Wilson
- Tongue
- English
- Leaves
- 200
- Category
- Library
No coin nor oath required. For personal study only.
✦ Table of Contents
Table of Contents
About the Author
About the Technical Reviewer
Introduction
Chapter 1: Introduction to Computer Programming
What Is Python
Getting Started
Setting Up
Install on Windows
Install on MacOS
Install on Linux
Summary
Chapter 2: The Basics
Language Classification
Low-Level Language
High-Level Language
Python Language Syntax
Reserved Words
Identifiers
Indentation
Comments
Input
Output
Escape Characters
Writing a Program
Lab Exercises
Why should you include comments?
Chapter 3: Working with Data
Variables
Local Variables
Global Variables
Basic Data Types
Integers
Floating Point Numbers
Strings
Lists
Two-Dimensional Lists
Sets
Tuples
Dictionaries
Program Input
Program Output
Casting Data Types
Arithmetic Operators
Operator Precedence
Performing Arithmetic
Comparison Operators
Boolean Operators
Bitwise Operators
Lab Exercises
Summary
Chapter 4: Flow Control
Sequence
Selection
if... else
elif
Iteration (Loops)
For Loop
While Loop
Break and Continue
Lab Exercises
Summary
Chapter 5: Handling Files
File Types
Text File
Binary
Text File Operations
Open Files
Write to a File
Read from a File
Binary File Operations
Open Files
Write to a File
Read a File
Random File Access
Lab Exercises
Summary
Chapter 6: Using Functions
Declaring Functions
Scope
Recursion
Lab Exercises
Summary
Chapter 7: Using Modules
Importing Modules
Creating Your Own Modules
Lab Exercises
Summary
Chapter 8: Exception Handling
Types of Exception
Catching Exceptions
Raising Your Own Exceptions
Summary
Chapter 9: Object-Oriented Programming
Principles of OOP
Encapsulation
Inheritance
Polymorphism
Abstraction
Classes and Objects
Class Inheritance
Polymorphic Classes
Method Overriding
Lab Exercises
Summary
Chapter 10: Building an Interface
Creating a Window
Adding Widgets
Menus
The Canvas
Images
Buttons
Message Boxes
Text Field
Listbox
Checkbox
Labels
Label Frame
Interface Design
Summary
Chapter 11: Developing a Game
Installing Pygame
Opening a Window
Adding an Image
The Game Loop
The Event Loop
Shapes
Basic Animation
Summary
Chapter 12: Python Web Development
Web Servers
Install the Web Server
Set Up Python Support
Executing a Script
Python Web Frameworks
Summary
Appendix A: Quick Reference
Data Types
Numeric Operators
Comparison Operators
Boolean Operators
String Operators
List Operators
Dictionary Operators
String Methods
List Methods
Dictionary Methods
Functions
Files
Conditional
Multi-conditional
While Loop
For Loop
Loop Control
Modules
Built-In Functions
Declare a Class
Child Class
Create Object
Call Object Method
Access Object Attributes
Exceptions
Index
📜 SIMILAR VOLUMES
<span>Written as an illustrated, step-by-step guide, this book will introduce you to Python with examples using the latest version of the language. <br>You'll begin by learning to set up your Python environment. The next few chapters cover the basics of Python such as language classifications, Pytho
Written as an illustrated, step-by-step guide for beginners, this book will introduce you to HTML and CSS with lab exercises and examples of code. You'll begin by setting up the development environment such as local web server and html editor. The next few chapters cover web servers, the basics o
<p><span>Written as an illustrated, step-by-step guide for beginners, this book will introduce you to HTML and CSS with lab exercises and examples of code. </span></p><p><span>You'll begin by setting up the development environment such as local web server and html editor. The next few chapters cover
<span>Do you want to learn good coding techniques quickly and easily?<br><br>Are you looking for a dynamic programming language that will do everything you need?<br><br>This book provides all the information in one handy place!</span><span><br><br>Since it was first conceived and released in the ear
Are you eager to grasp effective coding techniques quickly? Are you in search of a dynamic programming language that can fulfill all your needs? Look no further – this book consolidates all the essential information in one convenient place! Since its inception in the early 1990s, Python has