Question: [ 1 0 ] The highlighted statement class Book: def _ _ init _ _ ( self ) : self.number = [ ] books =

[10] The highlighted statement
class Book:
def__init__(self):
self.number =[]
books =[]
for i in range(4):
books.append(Book())
books[2].number.append(128)
is illegal statement
will store the value 128 in the second element of the number list in the second element of the books list
will result in a runtime error
will store the value 128 in the first element of number list in the 3rd element of books list
 [10] The highlighted statement class Book: def__init__(self): self.number =[] books =[]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!