#26 Python Tutorial for Beginners | Array in Python

Описание к видео #26 Python Tutorial for Beginners | Array in Python

Check out our courses:

Spring Boot and Microservices Live Course : https://go.telusko.com/SBM
Coupon: TELUSKO10 (10% Discount)

Complete Java Developer Course Batch-3: https://go.telusko.com/completebatch3
Coupon: TELUSKO10 (10% Discount)

Enterprise Java Spring Microservices: https://go.telusko.com/enterpriseJava
Coupon: TELUSKO10 (10% Discount)

Master Java Spring Development : https://go.telusko.com/masterjava
Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

Spring: https://go.telusko.com/udemyteluskosp...
Java:- https://go.telusko.com/udemyteluskojava
Java Spring:- https://go.telusko.com/Udemyjavaspring
Java For Programmers:- https://go.telusko.com/javaProgrammers
Python : https://go.telusko.com/udemyteluskopy...
Git : https://go.telusko.com/udemyteluskogit
Docker : https://go.telusko.com/udemyteluskodo...

For More Queries WhatsApp or Call on : +919008963671

website : https://courses.telusko.com/

Instagram :   / navinreddyofficial  
Linkedin :   / navinreddy20  
TELUSKO Android App : https://bit.ly/TeluskoApp

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 :- https://github.com/navinreddy20/Python-

Python for Beginners :- http://bit.ly/3JOLQhl

Java:- https://bit.ly/JavaUdemyTelusko
Spring:- https://bit.ly/SpringUdemyTelusko

More Learning :

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

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

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

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

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

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

Donation:
PayPal Id : navinreddy20
https://www.telusko.com

Комментарии

Информация по комментариям в разработке