January 2019
Beginner to intermediate
776 pages
19h 58m
English
An array (or list in some scripting languages) is used to store a similar set of multiple values inside a single variable. This helps to ensure all data types with similar meanings are stored in a single variable, and also we can easily loop through these array objects to fetch the values stored in an array.
Consider the following example:
countries=["India","China","USA","UK"]for specific country in countries Perform action
As we can see in the variable declaration, now we are declaring a similar data type with a similar context or meaning by grouping them together and assigning them into a single variable. In our example, it's the country names all assigned to an array variable named countries. In the next line, we are now iterating ...
Read now
Unlock full access