Intermediate Python

Write interactive Python programs that ask questions, clean up text, handle errors, process data files, call real APIs, and model games with classes.

BTaught by Brad Traversy
4.8
21 enrolled

Start learning

Build real skills one lesson at a time

Explore the complete curriculum below, then start with the lesson that is right for you.

About this course

Knowing Python's basics and building a program someone can use are two different things. This course closes that gap. You write programs that ask questions and check the answers, remember things between runs, and pull live data from the internet without crashing when something goes wrong.

Every lesson teaches one tool, and every chapter ends with a program you run and play. You build a game of Hangman, a trivia night on live questions, and a text adventure built on your own classes. Everything runs in the browser, so there is nothing to install.

What you'll learn

  • Input and output: asking questions with input(), re-asking until an answer is valid, and lining up what prints
  • Working with text: cleaning, searching, and reshaping strings
  • Collections: tuples and sets, plus looping with enumerate() and zip()
  • Comprehensions: building lists and dictionaries in one line
  • Functions: keyword arguments, *args and **kwargs, and sorting with key= and lambda
  • Modules and packages: splitting a program across files and folders
  • Errors and exceptions: reading a traceback, catching errors with try, and raising your own
  • Files: reading and writing text, CSV, and JSON
  • Data tools: counting with Counter and doing date math with datetime
  • APIs: fetching and sending data with requests, and handling a request that fails
  • Classes: class attributes, inheritance with super(), and dataclasses

Prerequisites

Course instructor

BT

Brad Traversy

Founder of Traversy Media and an educator known for practical, project-focused web development courses.

Course content