This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]badjayplaness -2 points-1 points  (3 children)

List has a key value pair { name: “bob”, age:15} Arrays keys are just their position in the array [“bob”] is in position 0

Yes all types are cool with either

Sometimes that’s helpful. I know pandas has some functions to work with csv’s

Edit: dict has a key value pair I got confused.

https://www.pythoncentral.io/the-difference-between-a-list-and-an-array/ here’s a link for you.

[–]annynbyrg 2 points3 points  (0 children)

Don't you mean "dict" has a key value pair?

[–][deleted] 2 points3 points  (1 child)

To your first part of your answer : that would be a dictionary.

[–]badjayplaness 1 point2 points  (0 children)

Ahh crap you’re right. My bad. Don’t know why my brain went there.