1array = ["1st", "2nd", "3rd"]
2#prints: ['1st', '2nd', '3rd']
3array.append("4th")
4#prints: ['1st', '2nd', '3rd', '4th']
1array = [1,2,3,4,5]
2print(array,array[0],array[1],array[2],array[3],array[4]
3
4#Output#
5#[1,2,3,4,5] 1 2 3 4 5
1#arrays and lists are different
2#numpy arrays are faster
3this_is_a_list = [1, 2, 3]
4import numpy #is you do not have it do pip install numpy
5this_is_an_array = numpy.array([1, 2, 3])
1#use numpy
2import numpy #if you don't have it do pip install numpy
3array = numpy.array(["Ford", "Volvo", "BMW"] )