Python : Arrays

  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

https://www.youtube.com/watch?v=nlP5kF1_efE

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Array is a container that stores  multiple values of the same type . The very key is that the array has to be of the same type. 

Syntax :

var = array(type code, [elements])


from array import *

arr = array('i', [1, 2, 3, 4, 5 ]
print(arr)



using Pointer


Reversing the array .


Append a value to an array 








Comments

Popular posts from this blog

Datatypes

PYTHON : In 4 hours

Complete Python Developer in 2021 : Zero to Mastery :::