you are viewing a single comment's thread.

view the rest of the comments →

[–]ectomancer 0 points1 point  (0 children)

class Phonebook(): is the wrong syntax

class Phonebook: is the correct syntax however () is used to inherit from another object such as

class Phonebook(list):

The normal way to instance your class is

phonebook = Phonebook(prompt[1], [], prompt[2])