paint-brush
What is the Difference Between Arrays, Lists, and Dictionaries in Python? by@miketechgame
918 reads
918 reads

What is the Difference Between Arrays, Lists, and Dictionaries in Python?

by Mike Wolfe5mMay 14th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

An array is a special type of variable that can hold more than one value at a time. A list is a data type that allows the storage of multiple values, or items, in one variable. A dictionary uses a key:value instead of an index to differentiate the keys between values. Dictionaries have a predetermined order of items based on when they are added to the variable. Lists are also indexed, starting at zero, and counting so you can iterate through the list. In an array, all data types must have the same values. In a list, there can be different data types for the data types.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - What is the Difference Between Arrays, Lists, and Dictionaries in Python?
Mike Wolfe HackerNoon profile picture
Mike Wolfe

Mike Wolfe

@miketechgame

Software Developer, Tech Enthusiast, Runner.

Learn More
LEARN MORE ABOUT @MIKETECHGAME'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Mike Wolfe HackerNoon profile picture
Mike Wolfe@miketechgame
Software Developer, Tech Enthusiast, Runner.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Platypush
Ktachibana
Coffee-web