Please enable JavaScript to use CodeHS


Python Programming 2

Lessons

  1. Functions and Exceptions

    1. 1.1 Functions

    2. Description
    3. Objective
    4. 1.2 Functions and Parameters

    5. Description
    6. Objective
    7. 1.3 Namespaces in Functions

    8. Description
    9. Objective
    10. 1.4 Functions and Return Values

    11. Description
    12. Objective
    13. 1.5 Exceptions

    14. Description
    15. Objective
    16. 1.6 Functions & Exceptions Quiz

    17. Description
    18. Objective
  2. Strings

    1. 2.1 Indexing

    2. Description
    3. Objective
    4. 2.2 Slicing

    5. Description
    6. Objective
    7. 2.3 Immutability

    8. Description
    9. Objective
    10. 2.4 Strings and For Loops

    11. Description
    12. Objective
    13. 2.5 The in Keyword

    14. Description
    15. Objective
    16. 2.6 String Methods

    17. Description
    18. Objective
    19. 2.7 Strings Quiz

    20. Description
    21. Objective
  3. Project: The Game of Pig

    1. 3.1 Project: The Game of Pig

    2. Description
    3. Objective
  4. Creating and Altering Data Structures

    1. 4.1 Tuples

    2. Description
    3. Objective
    4. 4.2 Lists

    5. Description
    6. Objective
    7. 4.3 For Loops and Lists

    8. Description
    9. Objective
    10. 4.4 List Methods

    11. Description
    12. Objective
    13. 4.5 Creating and Altering Data Structures Quiz

    14. Description
    15. Objective
  5. Extending Data Structures

    1. 5.1 2d Lists

    2. Description
    3. Objective
    4. 5.2 List Comprehensions

    5. Description
    6. Objective
    7. 5.3 Packing and Unpacking

    8. Description
    9. Objective
    10. 5.4 Dictionaries

    11. Description
    12. Objective
    13. 5.5 Extending Data Structures Quiz

    14. Description
    15. Objective
  6. Project: Guess the Word

    1. 6.1 Project: Guess the Word

    2. Description
    3. Objective
  7. File I/O

    1. 7.1 What is File I/O

    2. Description
    3. Objective
    4. 7.2 Reading Character from File

    5. Description
    6. Objective
    7. 7.3 Reading Line from File

    8. Description
    9. Objective
    10. 7.4 Reading All Lines from File

    11. Description
    12. Objective
    13. 7.5 Writing to File

    14. Description
    15. Objective
    16. 7.6 Move File Pointer Position

    17. Description
    18. Objective
    19. 7.7 File I/O Quiz

    20. Description
    21. Objective
  8. Exploring CS Careers

    1. 8.1 Computer Science Careers

    2. Description
    3. Objective
    4. 8.2 Explore a Career

    5. Description
    6. Objective
  9. Classes and Objects

    1. 9.1 Classes and Objects

    2. Description
    3. Objective
    4. 9.2 Methods

    5. Description
    6. Objective
    7. 9.3 Built-In Methods

    8. Description
    9. Objective
    10. 9.4 Operator Overloading

    11. Description
    12. Objective
    13. 9.5 Class Variables vs. Instance Variables

    14. Description
    15. Objective
    16. 9.6 Inheritance

    17. Description
    18. Objective
    19. 9.7 Hidden Attributes

    20. Description
    21. Objective
    22. 9.8 Namespaces

    23. Description
    24. Objective
    25. 9.9 Modules

    26. Description
    27. Objective
    28. 9.10 Classes and Objects Quiz

    29. Description
    30. Objective
  10. Final Exam

    1. 10.1 Final Exam

    2. Description
    3. Objective
  11. Python Graphics (Brython)

    1. 11.1 Creating Text & Lines

    2. Description
    3. Objective
    4. 11.2 Creating Shapes

    5. Description
    6. Objective
    7. 11.3 Creating Graphics Using Variables

    8. Description
    9. Objective
    10. 11.4 Using Functions in Graphics

    11. Description
    12. Objective
    13. 11.5 Using Loops in Graphics

    14. Description
    15. Objective
    16. 11.6 Graphics Challenges

    17. Description
    18. Objective
  12. Python Graphics (Tkinter)

    1. 12.1 Creating the Canvas

    2. Description
    3. Objective
    4. 12.2 Shapes and Attributes

    5. Description
    6. Objective
    7. 12.3 Creating Graphics Using Variables

    8. Description
    9. Objective
    10. 12.4 Using Functions in Graphics

    11. Description
    12. Objective
    13. 12.5 Using Loops in Graphics

    14. Description
    15. Objective
    16. 12.6 Graphics Challenges

    17. Description
    18. Objective
  13. Project: Who Said It?

    1. 13.1 Project: Who Said It?

    2. Description
    3. Objective
  14. Project: Mastermind

    1. 14.1 Let's Build Mastermind

    2. Description
    3. Objective
  15. Assessment 2

    1. 15.1 Assessment 2

    2. Description
    3. Objective