+ 1

What is array? Can anyone exlain me?

14th Aug 2017, 11:48 AM
Thoon Naing
Thoon Naing - avatar
2 Respostas
+ 2
arrays are such variable that can store more than one variable of same type....in c , cpp etc in python array is not of only same variables but it can carry any type of variables... array in c example int a[20]; it can store 20 integer variable float a[20] it can store 20 float variables char a[20] can store 20 charecter variables in python... they are calles lists.. b=[1 , 7.9 , 'abc' , '&' , 5678] so here b can carry integer,float,as well as strings amd charecter also... arrays are generally a step ahead from creating more variable by different names.... first element index always starts with 0(zero) in any language... like b[0] = 1 b[2]= abc
14th Aug 2017, 11:57 AM
sayan chandra
sayan chandra - avatar
+ 1
thx
14th Aug 2017, 11:58 AM
Thoon Naing
Thoon Naing - avatar