Computer Science, asked by feyman2153, 11 months ago

How do you make an array in Python?

Answers

Answered by gavenpais
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.
Answered by SteffiPaul
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