Please enable JavaScript to use CodeHS

Advanced Python and AI Programming

Welcome to Advanced Python and AI

Students review and extend core Python skills, including program structure, documentation, formatted output, exception handling, and lambda functions, to prepare for the object-oriented and data-driven work ahead.

Lessons

1.1 The Main Function

  • The Main Function
  • The Main Function Quiz
  • How Old is Python?
  • Exploration: Study Tips
  • Your Name and Hobby

1.2 Comments and Docstrings

  • Comments
  • Commenting Code
  • Docstrings
  • Docstring: print_grade
  • Docstring: unique_values
  • +3 more

1.3 Print Parameters and F-Strings

  • Introducing Print Parameters
  • Print Function Parameters
  • Playlist Printer
  • Introducing F-Strings
  • Printing in Python Quiz
  • +3 more

1.4 Error Handling with Exceptions

  • Exceptions in Python
  • Exceptions Quiz
  • Hierarchy of Exception Types
  • Exceptions Reflection
  • Valid Username Checker
  • +4 more

1.5 Lambda Functions

  • Lambda Functions
  • Math with Lambdas
  • Square and Multiply Numbers
  • Conditional Logic with Lambdas
  • Pass or Fail
  • +3 more

1.6 Python Keywords

  • Keywords
  • Keyword Text Color
  • Keywords
  • break and continue
  • pass
  • +4 more

1.7 Welcome Unit Quiz

  • Welcome Unit Quiz

Courses that include this module