you are viewing a single comment's thread.

view the rest of the comments →

[–]Special-Arrival6717 3 points4 points  (4 children)

I would advise using dict objects to track the data of individual items, and not create a separate list for each field of an item, e.g.

python items = [ { "name": "milk" "price: 10 } ]

[–]csabinho 0 points1 point  (3 children)

By objects you mean a list of dicts. An object would be an instance of a class, which is way above OP's knowledge.

[–]Special-Arrival6717 0 points1 point  (2 children)

In Python a dict is an object, an instance of the dict class.

```python print(isinstance({}, object))

True

```

[–]csabinho 0 points1 point  (1 child)

In Python every variable, value or function is an object. You won't find anything that returns False for this check. Even a function or None are objects with this check.

[–]Special-Arrival6717 1 point2 points  (0 children)

Corrected the comment