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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

self.author

A

a record value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly