Because Python’s data types are dynamic, it doesn’t allow for an array to be defined because arrays get defined as specific data types. For instance, in Java, you’d define an array like this:
int[] numArray = {1, 2, 3, 4, 5};
But, since Python doesn’t type its variables that way, it doesn’t have a primitive array data type. However, that doesn’t mean you can’t create an array in Python. This can be accomplished through a variety of libraries available in Python.