LaunchCode's LCHS

Chapters

  1. 1. Introduction to Python Programming
    1. 1.1. Why Learn To Code?
    2. 1.2. Why Python?
    3. 1.3. Using This Book
    4. 1.4. Tips and Motivation for Learning To Code
  2. 2. How Programs Work
    1. 2.1. Algorithms
    2. 2.2. Programming Languages
    3. 2.3. More About Programs
    4. 2.4. Your First Python Program
    5. 2.5. Trinket.io
    6. 2.6. Repl.it
  3. 3. How To Write Code
    1. 3.1. What is Code?
    2. 3.2. Syntax Rules
    3. 3.3. Adding Comments
    4. 3.4. The print Function
    5. 3.5. Welcome, New Coder
  4. 4. Data and Variables
    1. 4.1. Values and Data Types
    2. 4.2. Type Conversion
    3. 4.3. Variables
    4. 4.4. More on Variables
    5. 4.5. Statements and Expressions
    6. 4.6. Operators
    7. 4.7. Order of Operations
    8. 4.8. Other Operators
    9. 4.9. User Input
    10. 4.10. Exercises: Data & Variables
    11. 4.11. Project: Data & Variables
  5. 5. Making Decisions With Conditionals
    1. 5.1. Decision Making
    2. 5.2. Data Type for True/False
    3. 5.3. Boolean Expressions
    4. 5.4. Can We Do Math with Boolean Values?
    5. 5.5. Conditionals
    6. 5.6. Logical Operators
    7. 5.7. Truth Tables
    8. 5.8. Nested Conditionals
    9. 5.9. Chained Conditionals
    10. 5.10. Exercises: Booleans and Conditionals
    11. 5.11. Project: Conditional Launch
  6. 6. Repeating Things With Loops
    1. 6.1. Iteration
    2. 6.2. for Loops
    3. 6.3. More on range
    4. 6.4. Iteration Improves the Turtle Program
    5. 6.5. Loop Through a String
    6. 6.6. Loops With Conditions
    7. 6.7. The Accumulator Pattern
    8. 6.8. while Loops
    9. 6.9. Infinite Loops
    10. 6.10. Ending a Loop With break
    11. 6.11. Exercises: Loops
    12. 6.12. Project: Turtle Loops
  7. 7. Stringing Characters Together
    1. 7.1. Strings as Collections
    2. 7.2. Bracket Notation
    3. 7.3. Taking a Slice
    4. 7.4. String Immutability
    5. 7.5. String Methods
    6. 7.6. Special Characters
    7. 7.7. Template Literals
    8. 7.8. Iteration with Strings
    9. 7.9. Checking Strings
    10. 7.10. The string Module
    11. 7.11. Exercises: Strings
    12. 7.12. Project: Strings
  8. 8. Lists Keep Things in Order
    1. 8.1. List Basics
    2. 8.2. Lists Are Like Strings
    3. 8.3. Working with Lists
    4. 8.4. List Methods
    5. 8.5. Iterating Through Lists
    6. 8.6. Common List Tasks
    7. 8.7. Cloning Lists
    8. 8.8. split and join
    9. 8.9. Lists Within Lists
    10. 8.10. Exercises: Lists
    11. 8.11. Project: Lists
  9. 9. Errors and Debugging
    1. 9.1. What is Debugging?
    2. 9.2. Types of Errors
    3. 9.3. Error Messages are Good
    4. 9.4. Fixing Logic Errors
    5. 9.5. How To Avoid Debugging
    6. 9.6. Asking Good Questions
    7. 9.7. Exercises: Errors and Debugging
    8. 9.8. Project: Errors and Debugging
    9. 9.9. Project: Errors and Debugging (Translated)
  10. 10. What’s Your Function
    1. 10.1. Introduction
    2. 10.2. Calling Functions
    3. 10.3. Defining Our Own Functions
    4. 10.4. Function Input
    5. 10.5. Function Output
    6. 10.6. Boolean Functions
    7. 10.7. A Good Function-Writing Process
    8. 10.8. Parameters and Variables
    9. 10.9. Functions Calling Other Functions
    10. 10.10. Why Create Functions?
    11. 10.11. Exercises: Functions
    12. 10.12. Project: Functions
  11. 11. Python Modules
    1. 11.1. What are Modules?
    2. 11.2. Importing Modules
    3. 11.3. The random Module
    4. 11.4. The math Module
    5. 11.5. Creating Modules
    6. 11.6. The main() Event
    7. 11.7. More About main()
    8. 11.8. Exercises: Modules
    9. 11.9. Project: Collaborative Turtles Activity
  12. 12. Python Dictionaries
    1. 12.1. Dictionary Basics
    2. 12.2. Working with Dictionaries
    3. 12.3. Dictionary Methods
    4. 12.4. Iterating Through Dictionaries
    5. 12.5. Accumulator Pattern with Dictionaries
    6. 12.6. Search a Dictionary
    7. 12.7. Code Like a Pirate!
    8. 12.8. Exercises: Dictionaries
    9. 12.9. Project: Mad Dictionaries