#5 Python Tutorial for Beginners | List in Python
Vložit
- čas přidán 11. 07. 2024
- Check out our courses:
Spring and Microservices Weekend Live Batch : bit.ly/spring-live-weekend
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : bit.ly/java-spring-cloud
Udemy Courses:
Java:- bit.ly/JavaUdemyTelusko
Spring:- bit.ly/SpringUdemyTelusko
Java For Programmers:- bit.ly/javaProgrammers
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusko.com/
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
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.
nums.sort()
#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.
Github :- github.com/navinreddy20/Python-
Java:- bit.ly/JavaUdemyTelusko
Spring:- bit.ly/SpringUdemyTelusko
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
www.telusko.com - Věda a technologie
watching it in 2024
Same bro
@@animaxofindia5377 can we learn this in 2024 i mean is it updated or out dated ?
Finally I got best teacher on internet for Python..
Actually
Me also bro
Me too
Yes ur right
and that too for free.
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.
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!!
hey,How far u went?
I don't know how does someone can teach something so difficult in that much fun way
Python is soo easy
@Harsha exactly 🤪
It's all about a good teacher
How is this difficult?
I know Navin Sir
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 CZcams!!
Hello sir, can we talk?
After searching for lots of online tutorials..... finally i have reached the best platform. Thank you sir.
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!!
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.❤️
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
Programmers 2 questions to himself:
Why doesn't it work?
Why does it work?
xAvIeR
@@xavier2130 oob xavier you are just noob
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 ❤❤
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!
I was watching a documentary.
I saw a notification .
And now I am here .
✌ vids a day .
Awesome 😍
You're motivating amateur programmers to learn in the most enthusiastic way. Keep it up
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.
To be honest, literally no one explained like this. You explained each and every function or methods in particularly a topic. Love you Bro.
OMG !!! this is literally the best CZcams 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!!!
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 :)
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.
Your teaching style is so amazing and it helps to understand very easily...
I am starting to learn Python and I m seriously enjoying it as well as learning..
Thank you so much sir 😊 ❤️ for your efforts, that you put in these series.. really loved it
You are the best, navin. You make programming so much fun to learn. Take this from an engineering student who hates programming a lot. Lol. But seriously, thank you!! Please keep making these videos, they help a lot. ❤️
Thank god for you! Finally, somebody that knows how to explain all this. Keep it up mister, you are a savior.
Wow! 5 videos in and I already love Python! Thank you so much, sir!
thank you so much navin for the wonderful content, i never thought learning python could be so fun and easy.
name= "Telusko"
print (name[-3])
output = s
@THE BEAST TECH hi
@THE BEAST TECH youre learning python
@THE BEAST TECH ok
@THE BEAST TECH what python version you have
So what
Oh!!! I got it .... I'm very excited.
Thanks a lot.....🌹
It was really amazing and interesting to watch this video I know it was posted before 2 years but still it helps a lot thank you so much sir ❤😌
Navin sir ...You are simply amazing...the way u teach ...i wish i could have teacher like you in my graduation... but still blessed to have you now.
Hello,
Navin reddy,
Your way of Teaching is excellent!!! iam really having fun while learning the PYTHON. Please keep uploading such vidoes on Python as it will be very usefull for Test Engineers like me.
The best and important thing in ur videos is that u teach in a so much amazing and lively way. And make students to take it interesting. Thanks a lot!
are u student??.............if yes then in which standard u r?
Quiz question
Name="Telusko"
Print(name[-3])
Answer: s
Write it in capital letters. I think🤣
👌
@@murgan4307 i don't think so
@@sajalgpt8 bruh he is correct
U forgot to add parenthesis
It is easy to learn with you I will never forget this because I was trying to learn list since 2 week's and I saw this video and I just learnt it in 10:00 min you're excellent keep it up
it takes a sht load of efforts to produce such a quality work..sending thanks from germany
I have just started my BCA course . So ,i wanted to learn more about the different computer languages other than java becoz till now only java was known to me and i choose to learn python . Finally i got the best teacher on CZcams for python . I love your way of teaching sir.🤩 Thanks u for this videos.
Sir , plzz tell which app is good for practicing python in our mobiles
I didn't know anything about programming language but now only I started but I think if in this way I'll be learning from Navin sir then it will be easy for me. Thanks a lot for sharing knowledge in a fantastic and easy way.❤️
Hi Navin, i enrolled great lakes and i m new to programming so i was not understanding anything from great lakes but u have increased my confidence... i saw your 1 to 4 videos and i am able to nail it... thanks alot
My favourite teacher on youtube for programming!
awesome video sir! I'm getting your videos easily without any problems
Thank you so much for these python playlist
Love from Nepal
I finally got a awesome teacher , i clearly understood each and every topic and point ... Thanking you a lot sir
You are a great teacher. I love the flow in which you teach.
Hi Navin, Your examples and procedure to teach is really very good. If you can provide some assignments in end of every video based on the current topic or previous topic then it will be awesome. It will allow people like us to explore more and more. Thanks for your time and effort for this tutorial.
Your teaching is remarkable wish I had a teacher like you in my school. :)
Such a wonderful session where the entire core of python can be learned... Grt sir!
I love your passion and how easily you explain this. Blessings upon you.
Your teaching is really awesome 👌 sir
Thanks for helping me in learning phython in a very easy way🙂🙂
Nice teaching sir... Thanks a lot...
Sir ,i have started learning python classes because of my subject.thank you for explaining clear i think it's very interesting.
No words to appreciate you sir, I'm not able to convey how much ur lectures are helping me, thank you do much 🙏😄
accidentally I saw your python 1-hour introduction video on which you explain everything in a short time. from that day I believe that only u r the one who teaches me programming in a very efficient manner. thank u so much to provide this type of precious content and the best explanation .
Did u learn python?
I am a 10 year old- and due to this quarantine, my parents told me to learn a language(programing language) I came here and the way of teaching... just taught me so well that now I am in love with Python and am practicing it whenever I get time :). Great work Mr. Navin1 LOve your vids!
You are 13 now????
From the bottom of my heart, I want to say a very big thank you
I didn't even know that learning python will be so easy because you are a great teacher and I am loving learning python
thank you so much sir
Nice sir.. We want another great series of vedios on python, flask, Django etc as you have done the best java vedios series.. core, advanced java, servlet, jsp, spring etc on youtube.. Lots of love and respect for you sir 🙏🙏...
Thank you deepak..
i don't understand why he calls us aliens 😂😂😂
True
@@jothibbadni7389😂
Am The only alien here 😂
😂
😂
It's surprisingly fun to follow along with what you do in these, thanks for all your hard work on the course!
great video, so far this series has been fun and easy to learn ,thanks for the knowledge
Your content is amazing and I am really enjoying this series! One question though, you explained how to sort the numbers from smallest to largest.
Can we do the opposite? Is there a function for sorting the numbers from largest to smallest?
List of python seems to be easier as we go through your explanation Sir. No matter how dry the topic might be, you however bring interest and teach to the fullest.
Sir you are mind-blowing ,the way of your teaching while learning I'm always feeling enthusiastic and curious for new further topics😃😃
Navin u r amazing brother . So much knowledge free of cost and so easy to understand . God bless you brother
basics=['int','float','variables']
basics.extend(['list','append','remove','pop','sum','min','max'])
print("waiting for next video.. thank you sir")
namaste aap kaise hain
We are understanding very easily
I am learning it in 2022, really it helps me so much. Thank u Mr.Navin.
Hi Navin, I am really enjoying your sessions. I am learning it very easily. Thank you
Chapters (Powered by ChapterMe) -
00:00 - Intro
00:28 - Lists in Python
01:36 - Indexing in Lists
03:03 - Strings in Lists
03:30 - Mixed Data Types
04:52 - Operations on Lists
05:14 - Lists are Mutable
07:00 - Stack in Lists
08:59 - In-built Functions in Lists
09:59 - Outro
I can't believe that I can learn coding in such an easy and fun way . Thank you so much sir
your presentations are so easy to understand and thank you for making it FREE :)
Alot of information presented in a very simple and understandable way.
Thank you.
I am learning python during carona hoildays...
Thanku very much for teaching in such a enjoyable way
Me to (that's Rather Better than Using Shit TikTok or Other apps)
@Il Fantino I never Use Discord I haven't Experience on discord But I know Very well Telegram that's Too good Platform (but will try Discord)
@Il Fantino yup @mayurgadhiya12 TG
@Il Fantino yes Why Not ! :)
@Il Fantino okay I will Check It
According to me ,this is the best tutorial s for python course ....
loved ur explanation sir .. im very new to learn these all... thanks a lot for helping many members like us to learn new things
I started learning Python on Coursera through the Google Certificate set, and I felt it was not progressing or teaching in my style of learning. I felt it was lacking the BASE basics of coding in this language. You do so well breaking it down in to bite sized chunks which is a huge help, thank you!!!!
I just wanted to let you know that I really appreciate your teaching methods and skill. It feels to me as if the vast majority of Python tutorials from other educators tend to be far longer than they need to be, and I’ve been looking for a channel like yours, that simply delivers the content in a straightforward and concise manner. I honestly feel that, in pursuing your dedication to maintain brevity while preserving accuracy, you’re facilitating the growth of many who possess potential to contribute to the Python community, but may have otherwise abstained from learning Python altogether due to that arbitrary wall created by the unnecessary length of other educators’ lessons. Keep up the great work, and thank you so much (aaand yep, the irony doesn’t fall short on me in that I myself could have probably said all of that in a fraction of the words that I used)!
ok...this makes me want to learn the english language all over again.
any idea where i could find a course for that?
XDXDXDXDXD
A
Navin Sir = ['Awesome ','Superb', 'Wonderful']
Navin Sir
>>>'Awesome', 'Superb', 'Wonderful'
It should be on square brackets [ ]
@Dinesh 😅
Really appreciate your efforts and I am really amazed learning python under your guidance in CZcams❤. The way of your teaching and style with which you have delivered the contents makes the learning and implementation much easier 👍. Thanks a lot.
Just watched this video again. Thank you Mr. Reddy!
i Watching all your videos of PYTHON and because of you only i get job in PYTHON thanks
Hello....do we need to learn data scien/machine learning along with python to get a job in python?
Sir, in c language we should write code for finding min, max, sort in arrays.Don't we require code in phython ?
Yes bro we don't require writing individual codes when we use lists. Even I was surprised when I discovered this fact from Navin.
salute to you. you changed my programming mind and made me interested in python. thanks
The way of your teaching method is absolutely fine sir, you are awesome👌👍
I am 16 and i am watching it as entertainment
U r insane
name="Telusko"
print(name[-3])
answer is "S"
Navin sir ur the best, Ur explanation is to the point and clear. LOVE u sir
Tq so much sir for your valuable teaching...❣️❣️❣️ Ur giving me confidence on programming ❣️❣️ i don't have any programming skills but now I had a confidence... Bcz of your way of teaching ❣️❣️🙌🙌
name = Telusko
print (name[-3])
output : s
The result is okay...
Sahi to hai
aint this giving you an error !........ cuz, 'name' is string , its enclosed within inverted commas ..
@@richasharma681 Great catch..!!
@@richasharma681 Nope it works fine
Bro i have watched many tutorials but your videos are the most interesting you have made IT very easy. Luv from Pakistan
I really have zero knowledge in python sir. This is very new to me since I was from biology background. I thought it would be hard but after watching ur videos I really enjoyed it. I could able to understand it very well. Thankyou so much sir
Hi Navin!
The options for the functions of list does not pop up even after pressing clt+space in python 3.8 version? Any other alternative?
it does not work in python 3.9 too
i have the same problem
an interesting fact that when we instruct python with something like nums [2:1] then it does not give an error instead gives empty square brackets
I have started learning python...nd it's looks very curious that may be cause of u r teaching style...it's very impressive Navin gaaaruuuuu
Superb... He explains concepts with such an ease ..
my fist time to learn programming language . I am lucky i got such good Sensei
i guess ur watching a lot of anime buddy :)
Still in 2019 december
Wow, just excellent , i have search in CZcams around 30 minute, i am not found that i wanted. But you are wow..........
Sir,,, I love you...... Because.. You is the best teacher..... Your language is very good and clear and more than..... Sri,,,, I love you
nums = [25,36,95,14,12,26]
how to delete values (95,14,12)?
Ans: del nums[2:4]
How to delete 36 ,14 ,26 please let me know
thank you very much
Wrong ans. Nayak bro.if you want to delete values (95,14,12) then
Ans. is del nums[2:5].
Ans. del nums [2:5]
@@mdyadav6072 nums.remove(36,14,26)......This is the way to delete that alternate Numbers....
name="Telusuko"
Print ( name[-3])
Answer is :- s
Because the index values of the word telusko is 0,1,2,3,4,5,6
The return index values are -1,-2,-3,-4,-5,-6,-7
The the integer -3 corresponds at letter s
So the answer is s
No, it's "S" ig, because negative index start from end of the list i.e.., [....,-3,-2,-1].
Its u not s
@@divyanshukothari8024 He spelt it wrong
i will be following your course till the end i find python a good an easy language to learn
Thanks sir, now I can fullfill my dream of learning python