SDD - Implementation Flashcards
1
Q
Why do we use Books = [Book() for x in range (20)]
instead of
Titles = [counter] * 20
Author = [counter] * 20
Prices = [counter] * 20
A
Because in this instance we are using a record/class.
But primarily refer to it as a record.
2
Q
self.author
A
a record value