Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

array and list in python

# creating a list containing elements 
# belonging to different data types
sample_list = [1,"Yash",['a','e']]
print(sample_list)


# creating an array containing same 
# data type elements 
sample_array = [1,2,3,4,5,6]
print(sample_array)
Source by www.codeexampler.com #
 
PREVIOUS NEXT
Tagged: #array #list #python
ADD COMMENT
Topic
Name
6+7 =