List Vs Array

When I started in python, I totally understood what a list is, I understood concepts like indexing and slicing, how to append and extend a list and the likes...

Honestly, when I got to the array part of python, yes I knew quite a few things but I honestly did not know the difference between a list and an array, I checked several YouTube videos and all I see is an Array is homogeneous while a List is heterogeneous. I was confused! I quite understand the meaning of homogeneity and hetero.....

One faithful day, I was asked this same question; Kehinde what differentiates a List from an Array, I usually do not say I do not know (truthfully as at that moment, I actually don't!). I asked about an hour to get back to research on the difference. I was ready not to do anything that day if I do not understand the difference. I watched a ton of videos trying to know the difference, Sincerely I did not see one video on YouTube actually explaining it the way I would see the difference. I started my Jupyter Notebook and I started trying a lot of things...

Yes! you guessed right! I now understand clearly the difference and I can explain to a day old in python the difference between a List and an array!

Another day will be to explain packages, libraries, modules, methods, function and attributes!

To view or add a comment, sign in

More articles by Kehinde Fagbamigbe

  • 10 Important String Functions in Tableau

    In Tableau, strings or string data, are data made of text. String functions exist to help you manipulate your string…

  • HOW TO IMPORT MULTIPLE FILES IN PYTHON

    Most times in Python, you get to import just one file using pandas by pd.read(filename) or using the default open() and…

  • THE OFFICIAL LANGUAGE OF PHOTOGRAPHY.

    THE OFFICIAL LANGUAGE OF PHOTOGRAPHY Photography is a world on its own. it encompasses a whole lot.

Explore content categories