Computer Science, asked by ramdasninaniya189, 5 months ago

What is wrong with the following code:
class Book():
def open(self):
print("You opened the book")
def __init__(self):
self.pages = 347
The __init_with attributes should
be listed first.
open should be capitalized.
Book should not be capitalized.
there should be a self.in front of pages​

Answers

Answered by Anonymous
0

Answer:

The __init_with attributes should

be listed first.

open should be capitalized.

Book should not be capitalized.

there should be a self.in front of pages

Similar questions