How do you make an array in Python?
Answers
Answered by
0
Array is a container which can hold a fix number of items and these items should be of the same type. Most of the data structures make use of arrays to implement their algorithms. Following are the important terms to understand the concept of Array.
Element− Each item stored in an array is called an element.
Index − Each location of an element in an array has a numerical index, which is used to identify the element.
Element− Each item stored in an array is called an element.
Index − Each location of an element in an array has a numerical index, which is used to identify the element.
Answered by
0
An array is made in Python as follows:
- An array can be created in Python by importing the array module available in the software.
- An array is a data structure that is used to store the value of the same datatyyes.
- Arrays in Python can be one-dimensional, two-dimensional and three-dimensional.
- Arrays are structured as 'array(data_type, value_list)'.
- They have data types and value lists specified in their arguments.
Similar questions
Science,
5 months ago
Physics,
5 months ago
Psychology,
5 months ago
Computer Science,
11 months ago
Accountancy,
1 year ago
Science,
1 year ago