Answers for "array and list in python"

0

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)
Posted by: Guest on October-15-2021

Code answers related to "array and list in python"

Python Answers by Framework

Browse Popular Code Answers by Language