Pumpkin

Report a typo

Below is the class Dog with the __init__ method. Imagine you have a dog named Pumpkin (with a capital P!). Create an instance of the class Dog representing Pumpkin. The name of the variable should be pumpkin_dog.

Do NOT print anything.

Write a program in Python 3
class Dog:
def __init__(self, name):
self.name = name


# create pumpkin
___

Create a free account to access the full topic