Python Array – Arrays are a fundamental, basic, and must-to-know data structure and an important part of most programming languages. In Python, these are the containers that are able to store more than one item of the same type at the same time.
To be specific, these are an ordered collection of elements where every value is of the same data type. That is the most important thing in Python arrays – that they can only hold a sequence of multiple items that are of the same type.
NOTE – Lists and arrays may behave similarly but the main difference between the two is that lists can hold multiple elements of different data types but not arrays.
For example –
Creating an array of foodItems