Get startedGet started for free

Creating and using classes

To help recall the fundamentals of object-oriented programming, you'll create a Computer class from start-to-finish. Good luck!

This exercise is part of the course

Intermediate Object-Oriented Programming in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

class Computer:
  # Create an __init__() method with the storage parameter
  ____ ____(____, ____):
    self.storage = storage
Edit and Run Code