#5 Python Tutorial for Beginners | List in Python

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO20 (20% Discount)

Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

For More Queries WhatsApp or Call on : +919008963671

In this lecture we will learn:
- What is a list in Python?
- Lists are mutable
- Creation of a list in Python
- Methods available with the list
- Functions performed with a list

#1
Lists are used to store multiple items in a single variable.
- We have to use a square bracket [], and in that square bracket, we can store multiple values.
- We can print the list through the variable name.
- Lists are Mutable which means values can be changed in the list.
- We can also get the single value from the list using the index value.
- The index value is 1 less than the size of a list as the index value starts from 0.
e.g., If the size of the list is 5, then its index value lies in the range of 0 to 4.
- We can fetch only those values from a list that are in the range of index values of it.
- We can also get a sub-list of a list by using the slicing in a list.
- We can also fetch the value from a list through negative numbers similar to strings.
- A list of strings can also be created.
- We can also create a list that can store values of different data types.
Like it can store integer value, float value, string value etc, in a single list.
- A list of lists can also be created which means a list can also store different lists in it as well.

#2
- Several operations can also be performed using it and it has many in-built functions and methods to use.
- nums. shows all the functions that are available with the list.
- Ctrl + Space can also be used to show the methods.
- append method is used to add a new value to the end of a list.
- clear will clear the entire list.
- insert method can add a value in between the list at the specified index.
- A particular element can also be deleted through the remove method.
- pop method will also remove the element through the index value and return that deleted element as well.
- If you don't specify the index value in the pop method, it will delete and return the last element from the list.
- del is a command through which you can delete a sub-list or multiple values from a list.
del list name[start:end]
- extend method is used to add multiple values or a sub-list in a list.
- sort method is used to get listed in the sorted order.

#3
- min() function is used to get the minimum value present in a list.
- max() function is used to get the maximum value of a list.
- sum() function returns the sum of all of the values present inside the list.

More Learning :

Donation:
PayPal Id : navinreddy20
Рекомендации по теме
Комментарии
Автор

Finally I got best teacher on internet for Python..

vivek
Автор

I don't know how does someone can teach something so difficult in that much fun way

rekharajoria
Автор

This is the only platform I guess where Python is taught from the zero'est of the zero level to make it easy. And I loved it like anything, I mean, I tried learning from others but it lowered my interest and this is where I could revive that. Thankyou so much Navin sir.

posthink
Автор

To be honest, literally no one explained like this. You explained each and every function or methods in particularly a topic. Love you Bro.

jagadhishvegi
Автор

I am about to graduate with my material science PhD and realize my python knowledge is lacking ...I have extreme confidence that your videos will help me to become proficient in this language ...thank you for all of your hard work and dedication to education on Youtube!!

eric_welch
Автор

It's great when u find someone who teaches the way u want ..u deserve more likes n much more subscribers ...stay blessed sir..doing awesome work..the one who will follow this whole series will grap total knowledge abt python .. thank you sooo much sir.❤️

preetigajbhiv
Автор

After searching for lots of online finally i have reached the best platform. Thank you sir.

basabsaha
Автор

I'm 14 and started HTML when I was in sixth... that's all I knew about coding. I literally have no experience in coding. I thought if I learn this I might understand nothing. But till now it is great and I've got no doubts. This is the best playlist to learn Python ever! Thank you Sir!!

lfdhdnh
Автор

You're motivating amateur programmers to learn in the most enthusiastic way. Keep it up

gaurangp
Автор

its so funny when he says " oh it works" like it's his first time doing it. besides your videos are helping me a lot <3

syedrayan
Автор

Dude just gonna say: I've wanting to learn how to code for the longest time now, it always seemed so intimidating but you make it so easy to understand. This is my first day and I already love it.

abeldelatorre
Автор

I was always hate coding but because of your teaching, it is really fun for me. You are an awesome teacher and thank you so much sir for uploading this series.

sharmaritika
Автор

OMG !!! this is literally the best YouTube series I have found on python course, everything is explained in such a detailed manner and it is easy to understand . Thank you Navin sir for such great teaching . May god bless you!!!

gamespoint
Автор

Thank god for you! Finally, somebody that knows how to explain all this. Keep it up mister, you are a savior.

JoseHernandez-ctdl
Автор

I was doing my course from Alison and I was forgot the list that they taught now when I revised my list then he cleared me all doubt about it you are really such an amazing teacher I appreciate your effort but not only me all of us ❤❤

cricedits
Автор

I'm late to the party which says I'm new to this field of learning a language, it's like watching a new TV series over night. Learning though! completely interactive!!

bandikatlagopipriya
Автор

I'm learning Python for my coding class and I when I found this playlist to explain to me how Python works, I was so happy. Thank you so much sir :)

nahaarmirza
Автор

I was watching a documentary.
I saw a notification .
And now I am here .
✌ vids a day .
Awesome 😍

subho
Автор

Wow! 5 videos in and I already love Python! Thank you so much, sir!

ethanwinskill
Автор

Hey, Navin! Thank you so much indeed for the wonderful videos you have made available here. They are so helpful. I am enjoying learning Python with your help. I must admit that I have seen several videos before, but yours are well crafted and so easy to follow. Keep up the great work!

zakarialaroussi