Arrays in Python | Python Array Operation | Python Tutorial for Beginner

Опубликовано: 28 Сентябрь 2024
на канале: Rai Gurukul
380
94

An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. This makes it easier to calculate the position of each element by simply adding an offset to a base value, i.e., the memory location of the first element of the array.

For simplicity, we can think of an array a fleet of stairs where on each step is placed a value (let’s say one of your friends). Here, you can identify the location of any of your friends by simply knowing the count of the step they are on. Array can be handled in Python by a module named array. They can be useful when we have to manipulate only a specific data type values. A user can treat lists as arrays. However, user cannot constraint the type of elements stored in a list. If you create arrays using the array module, all elements of the array must be of the same type.

For more detail please watch complete session.

Refer this for Python Dictionary:    • Dictionary in Python  
Refer this for Python Tuple:    • Tupls in Python  
Refer this for Python List :    • List in Python  


#python #jsoninpython #learnpython #json #pythontutorial
****************************************************************************
Did you enjoy the video? If so, give it a like above!

Subscribe to our channel for more techie video
👉 https://www.youtube.com/c/DeepakRai?s...
Keep Learning!! Keep Growing!!

P.S. Make sure to keep up with us by clicking the bell!