Skip to main content

Unit 6 · Class is in Session · Lesson 52 of 57

Class Dismissed

Class dismissed!

That was a big one. In this unit, you learned that:

  • Every value in Python is an object: data plus methods
  • A class is the blueprint, and objects are built from it
  • __init__ runs automatically when you build an object, and sets up its attributes
  • self is "the object being worked on right now," and Python passes it in for you
  • Methods can give back answers, or change the object's state
  • A class can inherit everything from another one, and add its own stuff on top

And you built an account lockout. Alex's brute forcing days are over.

Quiz time!

Let's see if it stuck.

Knowledge check

A few questions on what the lesson covered. Create a free account to do this part.

Do this lesson for real

With a free account you get the terminals, challenges and checks that go with the lessons in Intro to Python, and your progress is saved as you go. CyberAcad is a 501(c)(3) nonprofit, so there is nothing to pay.