CommencerCommencer gratuitement

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!

Cet exercice fait partie du cours

Intermediate Object-Oriented Programming in Python

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

class Computer:
  # Create an __init__() method with the storage parameter
  ____ ____(____, ____):
    self.storage = storage
Modifier et exécuter le code