#5 Python Tutorial for Beginners | List in Python
Ғылым және технология
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
Пікірлер: 3 300
Finally I got best teacher on internet for Python..
@BhuveshDhiman
5 жыл бұрын
Actually
@Swathi-Talks
4 жыл бұрын
Me also bro
@spiritofjoy243
4 жыл бұрын
Me too
@shantiratha6276
4 жыл бұрын
Yes ur right
@ankushgupta8977
4 жыл бұрын
and that too for free.
I don't know how does someone can teach something so difficult in that much fun way
@manishsharma2211
4 жыл бұрын
Python is soo easy
@manishsharma2211
4 жыл бұрын
@Harsha exactly 🤪
@NidhiSingh-vr5mf
4 жыл бұрын
It's all about a good teacher
@travis9260
3 жыл бұрын
How is this difficult?
@Xavier-gr9ve
3 жыл бұрын
I know Navin Sir
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.
After searching for lots of online tutorials..... finally i have reached the best platform. Thank you 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 KZread!!
@AnnowerOne
2 жыл бұрын
Hello sir, can we talk?
I was watching a documentary. I saw a notification . And now I am here . ✌ vids a day . Awesome 😍
watching it in 2024
@animaxofindia5377
5 күн бұрын
Same bro
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!!
@thesparkingwire6185
Жыл бұрын
hey,How far u went?
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
@xavier2130
3 жыл бұрын
Programmers 2 questions to himself: Why doesn't it work? Why does it work?
@azlanmahin46
2 жыл бұрын
xAvIeR
@pickaxebro8394
2 жыл бұрын
@@xavier2130 oob xavier you are just noob
You're motivating amateur programmers to learn in the most enthusiastic way. Keep it up
Quiz question Name="Telusko" Print(name[-3]) Answer: s
@murgan4307
2 жыл бұрын
Write it in capital letters. I think🤣
@chrissaji4233
2 жыл бұрын
👌
@sajalgpt8
2 жыл бұрын
@@murgan4307 i don't think so
@walter_white69420
2 жыл бұрын
@@sajalgpt8 bruh he is correct
@rimasil3346
2 жыл бұрын
U forgot to add parenthesis
To be honest, literally no one explained like this. You explained each and every function or methods in particularly a topic. Love you Bro.
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.❤️
name= "Telusko" print (name[-3]) output = s
@rishikkeshsuresh3692
3 жыл бұрын
@THE BEAST TECH hi
@rishikkeshsuresh3692
3 жыл бұрын
@THE BEAST TECH youre learning python
@rishikkeshsuresh3692
3 жыл бұрын
@THE BEAST TECH ok
@rishikkeshsuresh3692
3 жыл бұрын
@THE BEAST TECH what python version you have
@amarjotsingh9676
3 жыл бұрын
So what
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.
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 ❤❤
OMG !!! this is literally the best KZread 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 :)
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!!
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.
Thank god for you! Finally, somebody that knows how to explain all this. Keep it up mister, you are a savior.
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. ❤️
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!
Wow! 5 videos in and I already love Python! Thank you so much, sir!
it takes a sht load of efforts to produce such a quality work..sending thanks from germany
My favourite teacher on youtube for programming!
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.
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
Oh!!! I got it .... I'm very excited. Thanks a lot.....🌹
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.
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.❤️
thank you so much navin for the wonderful content, i never thought learning python could be so fun and easy.
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!
@intelligentbrahman1572
3 жыл бұрын
are u student??.............if yes then in which standard u r?
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 ❤😌
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
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
@saiabhishek53
2 жыл бұрын
No, it's "S" ig, because negative index start from end of the list i.e.., [....,-3,-2,-1].
@divyanshukothari8024
2 жыл бұрын
Its u not s
@manasshetty1874
2 жыл бұрын
@@divyanshukothari8024 He spelt it wrong
Your teaching is remarkable wish I had a teacher like you in my school. :)
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.
I finally got a awesome teacher , i clearly understood each and every topic and point ... Thanking you a lot sir
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
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 KZread for python . I love your way of teaching sir.🤩 Thanks u for this videos.
@shirishagalanagari1634
3 жыл бұрын
Sir , plzz tell which app is good for practicing python in our mobiles
awesome video sir! I'm getting your videos easily without any problems Thank you so much for these python playlist Love from Nepal
You are a great teacher. I love the flow in which you teach.
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!
@praveenbhajantri7559
2 ай бұрын
You are 13 now????
Nice teaching sir... Thanks a lot...
basics=['int','float','variables'] basics.extend(['list','append','remove','pop','sum','min','max']) print("waiting for next video.. thank you sir")
@TheOneAndOnlyHypnotist
4 жыл бұрын
namaste aap kaise hain
Sir ,i have started learning python classes because of my subject.thank you for explaining clear i think it's very interesting.
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🙂🙂
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 .
@basubs1136
4 ай бұрын
Did u learn python?
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
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!!!!
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.
From the bottom of my heart, I want to say a very big thank you
No words to appreciate you sir, I'm not able to convey how much ur lectures are helping me, thank you do much 🙏😄
i don't understand why he calls us aliens 😂😂😂
@jothibbadni7389
2 ай бұрын
True
@MEMESINCOGNITO0
2 ай бұрын
@@jothibbadni7389😂
@MEMESINCOGNITO0
2 ай бұрын
Am The only alien here 😂
@JOYALmp1
2 ай бұрын
😂
@lamaspacos
2 ай бұрын
😂
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 🙏🙏...
@chinmaydas4053
6 жыл бұрын
Thank you deepak..
I am learning it in 2022, really it helps me so much. Thank u Mr.Navin.
Such a wonderful session where the entire core of python can be learned... Grt sir!
We are understanding very easily
name="Telusko" print(name[-3]) answer is "S"
thank you so much sir! i never thought programming could be so much fun!
For the first time in my life i understood what syntax really means. Thank you.
I can't believe that I can learn coding in such an easy and fun way . Thank you so much sir
I am learning python during carona hoildays... Thanku very much for teaching in such a enjoyable way
@mayurgadhiya3964
4 жыл бұрын
Me to (that's Rather Better than Using Shit TikTok or Other apps)
@mayurgadhiya3964
4 жыл бұрын
@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)
@mayurgadhiya3964
4 жыл бұрын
@Il Fantino yup @mayurgadhiya12 TG
@mayurgadhiya3964
4 жыл бұрын
@Il Fantino yes Why Not ! :)
@mayurgadhiya3964
4 жыл бұрын
@Il Fantino okay I will Check It
It's surprisingly fun to follow along with what you do in these, thanks for all your hard work on the course!
Navin u r amazing brother . So much knowledge free of cost and so easy to understand . God bless you brother
name = Telusko print (name[-3]) output : s
@cryptocyberspace5252
4 жыл бұрын
The result is okay...
@lakshkaushik6366
4 жыл бұрын
Sahi to hai
@richasharma681
4 жыл бұрын
aint this giving you an error !........ cuz, 'name' is string , its enclosed within inverted commas ..
@PramodJadhav510
4 жыл бұрын
@@richasharma681 Great catch..!!
@friendlychannel100
4 жыл бұрын
@@richasharma681 Nope it works fine
i Watching all your videos of PYTHON and because of you only i get job in PYTHON thanks
@ananyamahapatra6597
5 жыл бұрын
Hello....do we need to learn data scien/machine learning along with python to get a job in python?
Alot of information presented in a very simple and understandable way. Thank you.
Just watched this video again. Thank you Mr. Reddy!
Navin Sir = ['Awesome ','Superb', 'Wonderful'] Navin Sir >>>'Awesome', 'Superb', 'Wonderful'
@dineshbh3837
4 жыл бұрын
It should be on square brackets [ ]
@poulamy29
4 жыл бұрын
@Dinesh 😅
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 really enjoyed his full series
Superb... He explains concepts with such an ease ..
According to me ,this is the best tutorial s for python course ....
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)!
@aakashnarayanan8993
4 жыл бұрын
ok...this makes me want to learn the english language all over again. any idea where i could find a course for that? XDXDXDXDXD
@supernova7683
Жыл бұрын
A
Hi Navin, I am really enjoying your sessions. I am learning it very easily. Thank you
Sir,,, I love you...... Because.. You is the best teacher..... Your language is very good and clear and more than..... Sri,,,, I love you
Sir, in c language we should write code for finding min, max, sort in arrays.Don't we require code in phython ?
@zavier9788
3 жыл бұрын
Yes bro we don't require writing individual codes when we use lists. Even I was surprised when I discovered this fact from Navin.
Still in 2019 december
Enjoyed not only the content but also the way you presented it.
He is the best teacher that I have ever witnessed in my life
Sir some things are different in version 3.9
@ajitesh1802
3 жыл бұрын
Yes
I am 16 and i am watching it as entertainment
@ronglord
11 күн бұрын
U r insane
salute to you. you changed my programming mind and made me interested in python. thanks
great video, so far this series has been fun and easy to learn ,thanks for the knowledge
nums = [25,36,95,14,12,26] how to delete values (95,14,12)? Ans: del nums[2:4]
@mdyadav6072
3 жыл бұрын
How to delete 36 ,14 ,26 please let me know
@sparklyn9642
3 жыл бұрын
thank you very much
@manishkumarmani1420
3 жыл бұрын
Wrong ans. Nayak bro.if you want to delete values (95,14,12) then Ans. is del nums[2:5].
@manishkumarmani1420
3 жыл бұрын
Ans. del nums [2:5]
@karthikps1647
3 жыл бұрын
@@mdyadav6072 nums.remove(36,14,26)......This is the way to delete that alternate Numbers....
my fist time to learn programming language . I am lucky i got such good Sensei
@darealcryzal6090
3 жыл бұрын
i guess ur watching a lot of anime buddy :)
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
The way of your teaching method is absolutely fine sir, you are awesome👌👍
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?
@ynsp7422
3 жыл бұрын
it does not work in python 3.9 too i have the same problem
I was not comfortable to learn the python in english but your way of presentation and the examples a love it sir thankyou for your this efforts 🥰🥰
Sir you are mind-blowing ,the way of your teaching while learning I'm always feeling enthusiastic and curious for new further topics😃😃
I am not able to see the function window which appears by control+
@HashMagician
4 жыл бұрын
me too :(
@HarpreetKaur-ks6th
4 жыл бұрын
I too also not getting please help me
@joseotero9197
4 жыл бұрын
Have you figure how to get the pop up menu option?
@rootof3vil
4 жыл бұрын
Me too
@n7s134
4 жыл бұрын
i think if you create a new file by going to File->new file or "ctrl+N" then so long as new file is open then the autocomplete popup will work. also in options->configure idle you can set the time delay before popup appears.
How to insert multiple values at the middle
@naveenvenkatesh8038
4 жыл бұрын
By Uing extend but it is In the append order by using insert
your presentations are so easy to understand and thank you for making it FREE :)
Thanks sir, now I can fullfill my dream of learning python