Fill: Class Definition
Fill in the Blank Beginner
Question
Fill in the blank to define a class named Animal.
Code
___ Animal:
pass
Hint
The keyword for defining a class is...
Explanation
class defines a new class. class Animal: pass creates an empty class named Animal. Classes are templates for creating objects with shared attributes and methods.
Related Resources
Related Lessons
- Classes and Objects
Class definition.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.