118k views
1 vote
The structures used to store data

User Ryyker
by
8.7k points

1 Answer

4 votes

Answer:

you can store data in list , Tuple , map and array

Step-by-step explanation:

list means in the form:

list = [1,2,3,4,5]

Tuple = (1,2,3,4,5)

map = {1:2, 2:3 , 3:4}

array = [

[1,2,3,4,5]

[6,7,8,9,10]

]

difference

list is used to access the stored data by usinf the index. Tuple consider each elements as a string

map used to store connected data's like age and name of some one and acces it using either of them and areay used to store 2 dimensional data

User Phil Boltt
by
7.6k points

No related questions found