HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

#26 Python Tutorial for Beginners | Array in Python

1,612,625 views October 30, 2018 15:57

Watch on YouTube
ChannelTelusko

Description from the creator

Check out our courses:

Agentic AI Engineering with Python : go.telusko.com/agentic-ai-python
Coupon: TELUSKO10 (10% Discount)

Master Java Spring Development : go.telusko.com/learn-master
Coupon: TELUSKO10 (10% Discount)

For More Queries WhatsApp or Call on : +919008963671

website : telusko.com/

Udemy Courses:

Java Spring:- go.telusko.com/Udemyjavaspring
Java:- go.telusko.com/udemyteluskojava
Spring: go.telusko.com/udemyteluskospring
Java For Programmers:- go.telusko.com/javaProgrammers
Python : go.telusko.com/udemyteluskopython
Git : go.telusko.com/udemyteluskogit
Docker : go.telusko.com/udemyteluskodocker

Instagram : instagram.com/navinreddyofficial/
Linkedin : in.linkedin.com/in/navinreddy20
WhatsApp : go.telusko.com/whatsapp
Discord : discord.gg/D8hWe9BqfF


In this lecture we will learn:
- What is an array in Python?
- Importing the array module
- Different functions used with arrays
- Fetching all values of an array
- Indexing in an array


#1
- Array is almost to list with one difference that all the values that are present should be of the same type.
- In python, arrays do not have fixed sizes, they can be expanded or shrunk.
- We need to import a module known as an array to use the arrays in python.
e.g., import array as arr
- At the time of importing the module, you can specify the functions that you will use in the code.
- You can also use (*) in place of defining each function separately. * indicates all functions have to be included.
- In an array, we have to specify things:
1. Type
2. Value
- By changing the type of a value, the size of the allocated memory is also changed.
- We have to use the TypeCode to define its type in an array.

#2
- Normal integers go from a negative range to a positive range.
- Unsigned integers are used when you do not want to store negative values.
- A numeric variable is signed if it can represent both positive and negative numbers.
- A value will be unsigned if it can only represent non-negative numbers (zero or positive numbers).

#3
- buffer info() function gives you the size of an array.
- buffer info() function returns two things: an address and the size of an array.
- typecode () function is used to return the type code of an array with which you are working.
- append() method is used to add a value in an integer.
- remove() method is used to remove a value from an array.
- reverse() method is used to reverse the order of value of an array.

#4
- In python, arrays also support indexing. Values can be fetched through index values.
- Array indexing is the same as accessing an array element.
- You can access an array element by referring to its index number.
- len() function is used to get the length or size of an array.
- len() function returns the number of elements present in the array.
- We can use both for loop and while loop in different ways to fetch the values of an array.
- We can also assign all values of a previous array into a new array one by one.

Github :- github.com/navinreddy20/Python-

Python for Beginners :- bit.ly/3JOLQhl

More Learning :

Java :- bit.ly/3x6rr0N
Python :- bit.ly/3GRc7JX
Django :- bit.ly/3MmoJK6

JavaScript :- bit.ly/3tiAlHo
Node JS :- bit.ly/3GT4liq

Rest Api :-bit.ly/3MjhZwt
Servlet :- bit.ly/3Q7eA7k
Spring Framework :- bit.ly/3xi7buh
Design Patterns in Java :- bit.ly/3MocXiq
Docker :- bit.ly/3xjWzLA

Blockchain Tutorial :- bit.ly/3NSbOkc
Corda Tutorial:- bit.ly/3thbUKa
Hyperledger Fabric :- bit.ly/38RZCRB

NoSQL Tutorial :- bit.ly/3aJpRuc
Mysql Tutorial :- bit.ly/3thpr4L

Data Structures using Java :- bit.ly/3MuJa7S
Git Tutorial :- bit.ly/3NXyCPu

Donation:
PayPal Id : navinreddy20
telusko.com

About this tutorial

Telusko published this 15:57 video tutorial on October 30, 2018. It has been watched 1,612,625 times on YouTube.

Channel
Telusko
Duration
15:57
Published
October 30, 2018
Views
1,612,625
Likes
21,355

Tags

Share

This tutorial in other languages