๐”– Scriptorium
โœฆ   LIBER   โœฆ

๐Ÿ“

Beej's Guide to Python Programming: For Beginners

โœ Scribed by Brian โ€œBeej Jorgensenโ€ Hall


Publisher
Brian โ€œBeej Jorgensenโ€ Hall
Year
2023
Tongue
English
Leaves
195
Category
Library

โฌ‡  Acquire This Volume

No coin nor oath required. For personal study only.

โœฆ Synopsis


Hello, one and all! This is my little how-to guide on Python Programming for Absolute Beginners! It's a complete work in progress!

Seriously--it's not even remotely done. And the parts that are there are alpha quality.

โœฆ Table of Contents


Intro
Audience
Platform and Tools
Official Homepage and Books For Sale
Email Policy
Mirroring
Note for Translators
Copyright, Distribution, and Legal
Dedication
Publishing Information
What is Programming, Anyway?
Objectives
More Terminology Than You Wanted
What's This Talk About Problem Solving?
So How To Solve It?
What is Python?
Summary
What software will I need?
Objectives
What Is All This?
Installing Python
Windows
Mac
Linux/Unix-likes
Running IDLE
Your First Command
Summary
How do I write a program?
Objectives
The Problem That Needs Solving
Launching your IDE and Opening a File
Running the Program!
Exercises
Summary
Data and Processing Data
Objective
Data, Variables, and Math
Assigning from One Variable to Another
Your Mental Model of Computation
User Input
Data Types
Converting Between Data Types
Input Two Numbers and Print the Sum
Wrapping it Up
Exercises
Summary
Flow Control and Looping
Objective
Chapter Project Specification
What is Flow Control?
Boolean Algebra and Expressions
Boolean Operations in Python
The Almighty if Statement
And Now: while Loops!
Looping: for Loops
When while and When for?
Chapter Project
Exercises
Summary
Strings
Objective
Chapter Project Specification
What is a String?
Creating Strings
Converting Other Types To Strings and Vice Versa
String Concatenation with +
Midterm Challenge
Getting Individual Characters From Strings
Slices
Midterm Challenge
Interlude: Mutable versus Immutable Types
for-loops with Strings
String Functions and Methods
Formatted Output with F-Strings
.format() Method
% printf Operator
Chapter Project
Exercises
Summary
Lists
Objective
Chapter Project Specification
What Are Lists?
List Assignments
for and Listsโ€”Powerful Stuff
for and enumerate()
Midterm: Doubling The Values
Built-in Functions for Lists
What Good Are They?
Midterm Challenge
Building New Lists, Repeating and Empty
List Comprehensions
Lists of Lists
Chapter Project Implementation
Exercises
Summary
Dictionaries
Objective
Chapter Project Specification
What are Dictionaries?
Initializing a Dictionary
Speed Demon
Does this dict have this key?
Iterating over Dictionaries
Common Built-in Dictionary Functionality
Dictionary Comprehensions
Dictionaries of Dictionaries
Dictionaries are Mutable
The Chapter Project
Exercises
Summary
Functions
Objective
Chapter Project Specification
What Are Functions?
Using Built-In Functions
Arguments
Writing Your Own Functions
Multiple Return Values
What Makes a Good Function
Positional Arguments versus Keyword Arguments
Interlude: Evaluation Strategies
The Chapter Project
Exercises
Summary
Classes and Objects
Objective
Chapter Project Specification
What Problem Are We Even Trying To Solve?
What are Classes and Objects?
Making Different StarShips
Attributes
Using Attributes
More on Methods
Pretty Printing
Objects are Mutable
Objects and None
Testing for Attributes
Chapter Project
Exercises
Summary
Importing Modules
Objective
Chapter Project Specification
What and Why of Modules
Using a Module
Command Line Arguments
Printing Calendars
Importing Specific Attributes
Learning All The Modules
Chapter Project
Exercises
Summary
Reading Files
Objective
Project
What are Files, Anyway?
Reading Files, The Classic Way
Opening Files with with
Reading Data a Line at a Time
Writing files
Chapter Project
Exercises
Summary
Exceptions
Objective
Project
Errors in Programs
Classic Error Handling
Error Handling with Exceptions
Catching Exceptions
Catching Multiple Exceptions
Catching Multiple Exceptions II
Getting More Exception Information
Catching All Exceptions
Finally finally
What Else? else!
Exception Objects
Raising Exceptions
Re-raising Exceptions
Project Implementation
Exercises
Summary
Appendix A: Basic Math for Programmers
Arithmetic
Division in Python
Modulo, AKA Remainder
Negative numbers
Absolute Value
The Power of Exponents
Parentheses
Square root
Factorial
Scientific notation
Logarithms
Rounding
Large Numbers
Appendix B: The REPL
What is the REPL?
Calculator
Getting Help
dir()โ€”Quick and Dirty Help
Getting out of the REPL
Appendix C: Assignment Behavior
How This Relates To Functions
Is Any of This True?
Python Compiler Optimizations
Internment
Appendix D: Number Bases
How to Count like a Boss
Number Bases
Hexadecimal, Base 16
Specifying the Number Base in Python
Accelerating Beyond IDLE
Objectives
What with the What Now?
The Terminal
The Shell
Windows Terminals and Shells
Windows gitbash
Windows WSL
Mac
Linux/Unix-likes
Installing an IDE
Windows VS Code
Mac
Linux and other Unix-likes
Running VS Code
Using a Barebones Editor and Terminal
Start with the Terminal
Launching Your Code Editor
Running the Program!
Exercises
Summary


๐Ÿ“œ SIMILAR VOLUMES


Python Programming for Beginners: The Si
โœ Mark Gowen ๐Ÿ“‚ Library ๐Ÿ“… 2023 ๐Ÿ› Independently published ๐ŸŒ English

Want to level up your career and gain more freedom? Say goodbye to limitations and embrace new income opportunities! Ready to unlock the power of Python?Overcome the challenge and master this in-demand programming language! Discover the game-changer in the tech industry: a versatile and beginner-fri

Python For Beginners : A Genius Guide to
โœ Edward Thornton ๐Ÿ“‚ Library ๐ŸŒ English

<p></p><h3><span>The book is aimed at beginners and assumes no prior programming experience.</span></h3><p></p><p></p><p></p><span>The Python for Beginners, teaches the basics of Python so you will be able to start coding in no time! </span><p></p><p></p><p></p><span>This genius guide to Python Prog

Python For Beginners : A Genius Guide to
โœ Edward Thornton ๐Ÿ“‚ Library ๐ŸŒ English

<p></p><h3><span>The book is aimed at beginners and assumes no prior programming experience.</span></h3><p></p><p></p><p></p><span>The Python for Beginners, teaches the basics of Python so you will be able to start coding in no time! </span><p></p><p></p><p></p><span>This genius guide to Python Prog

Python: Beginner's Guide to Programming
โœ Charlie Masterson ๐Ÿ“‚ Library ๐Ÿ“… 2018 ๐Ÿ› E.C. Publishing ๐ŸŒ English

In this Definitive Python Guide, you're about to discover...<br><br>How to program code in Python through learning the core essentials that every Python programmer must know. Python is a very popular programming language, and there are a great many books on the market concerning it. We cut to the ch