There are different types of variables. Variables can be classified into three categories:
- Scalar: These are variables that can only hold a single data point of a particular data type, for example; Character, Integer, Double, and so on.
- Collections: These are variables that can hold one or more data point of a particular data type. For example; array, list, dictionary, and so on.
- Tables: These are a tabular form of the data structure which consists of rows and columns.
In this section, we are going to see how collections work and how we can store values in the collection variables.
In a collection, we can store one or more data points, but all the data must be the same. Consider an example. An array is a collection in which we can store different values of a particular data type. It is a fixed data type, meaning if we store five values inside the array, we cannot...