𝔖 Scriptorium
✦   LIBER   ✦

📁

The Absolute Beginner's Guide to Python Programming: A Step-by-Step Guide with Examples and Lab Exercises

✍ Scribed by Kevin Wilson


Publisher
Apress
Year
2022
Tongue
English
Leaves
200
Edition
1
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Written as an illustrated, step-by-step guide, this book will introduce you to Python with examples using the latest version of the language. 
You'll begin by learning to set up your Python environment. The next few chapters cover the basics of Python such as language classifications, Python language syntax, and how to write a program. Next, you will learn how to work with variables, basic data types, arithmetic, companion, and Boolean operators, followed by lab exercises. Further, the book covers flow control, using functions, and exception handling, as well as the principles of object-oriented programming and building an interface design. The last section explains how to develop a game by installing PyGame and how to use basic animation, and concludes with coverage of Python web development with web servers and Python web frameworks. 
The Absolute Beginners Guide to Python Programming will give you the tools, confidence, and inspiration to start writing Python programs. If you are a programmer, developer, or a student, or someone who wants to learn on their own, this book is for you.
What You Will Learn

  • Gain an understanding of computer programming 
  • Understand different data and data types
  • Work with Classes and OOP
  • Build interfaces, simple games, and web development with Python

Who This Book Is ForSoftware programmers, developers or students, or anyone who wants to learn Python programming on their own.

✦ 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


The Absolute Beginner's Guide to Python
✍ Kevin Wilson 📂 Library 📅 2022 🏛 Apress 🌐 English

<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 HTML an
✍ Kevin Wilson 📂 Library 📅 2023 🏛 Apress 🌐 English

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

The Absolute Beginner's Guide to HTML an
✍ Kevin Wilson 📂 Library 🏛 Apress 🌐 English

<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

Python Programming: The Ultimate Beginne
✍ Mark Reed 📂 Library 🌐 English

<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

Mastering Python Programming: A Comprehe
✍ Chloe Annable 📂 Library 📅 2024 🏛 Chloe Annable 🌐 English

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