#6 Python Tutorial for Beginners | Tuple | Set in Python

  Рет қаралды 2,060,391

Telusko

Telusko

Күн бұрын

Telusko Courses:
Spring and Microservices Live Course : bit.ly/springmslive
Coupon: TELUSKO25 (25% Discount)
Industry-Ready Java Spring Microservices Developer Live : bit.ly/JavaMS2
Complete Java Developer Course : bit.ly/Comp-Java-Dev-2
Coupon: TELUSKO20 (20% Discount)
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
TELUSKO Android App : bit.ly/TeluskoApp
In this lecture we will learn:
- What are Tuples in Python
- Tuples re immutable
- Methods used with tuples
- When to use tuples over lists?
- What are Sets in Python?
- Properties of Sets
#1
Tuples:-
Tuple is almost similar to a list in which we can store multiple values.
- Tuples are Immutable and we can change values in them.
- To define a tuple, () round brackets are used.
- We can fetch the values from a tuple using the index value that can be given in a square bracket.
- Tuple will give an error when you tried to change a value in it.
#2
- count method is used to count the occurrences of an element in a tuple. It counts the number of times that an element is present in a tuple.
e.g., If an element of value 5 is present two times in a tuple, then the count method returns 2.
#3
- We can use tuples when we want a list of multiple values but we do not want to change it.
- Iteration in the tuple is faster than the list.
#4
Sets:-
- Set is a collection of unique elements.
- To define the set, we use the {} curly brackets.
- Set never follows the sequence.
- When we print the set, then the sequence of values in output will be different from the sequence of input.
- Duplicate values present in a set will be printed only once in an output.
- Set uses the concept of Hash. Hash is used to improve the performance as it fetches the values as fast as possible.
- Indexing is not supported in sets as it does not follow sequencing.
- Values can not be changed in a set also because index value is not supported.
Github :- github.com/navinreddy20/Python-
Editing Monitors :
amzn.to/2RfKWgL
amzn.to/2Q665JW
amzn.to/2OUP21a.
Editing Laptop :
ASUS ROG Strix - (new version) amzn.to/2RhumwO
Camera : amzn.to/2OR56AV
lens : amzn.to/2JihtQo
Mics
amzn.to/2RlIe9F
amzn.to/2yDkx5F
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

Пікірлер: 1 500
@streetsidetechnocrats9670
@streetsidetechnocrats9670 5 жыл бұрын
I never seen such a nice tutor like you. Keep it up Sir. You are more valuable
@bhanumudhiraj3386
@bhanumudhiraj3386 2 жыл бұрын
@Riyanshi's vlogs you can share the link dhidi😄
@bilaltubecom
@bilaltubecom 4 жыл бұрын
am watching all add not skipping one of the best tutorial on KZbin
@pardhualapati4981
@pardhualapati4981 3 жыл бұрын
Telusukoo..
@josaphcj7199
@josaphcj7199 3 жыл бұрын
Mee 2
@beyondlimits384
@beyondlimits384 3 жыл бұрын
Meetoo
@soumelee5661
@soumelee5661 3 жыл бұрын
@Skylar James scam :O
@ayushalhat1238
@ayushalhat1238 3 жыл бұрын
@Skylar James to anyone reading this plz do not try it as it is a scam which has already trapped many people...they propogate through youtube comment section only ...no doubt *its a scam*
@abhishekkumarav8868
@abhishekkumarav8868 4 жыл бұрын
Do you know why we love to learn python under ur guidance?? Coz u bother about beginners 🙏❤️
@virgo4250
@virgo4250 3 жыл бұрын
yes ofcourse
@adityaprakash8217
@adityaprakash8217 3 жыл бұрын
Yes true
@satyamaruthi1145
@satyamaruthi1145 3 жыл бұрын
even his assent is also more favourable to beginners and it creates interest to the listeners
@BarredTitan
@BarredTitan 2 жыл бұрын
Ye
@heh2393
@heh2393 2 жыл бұрын
@@satyamaruthi1145 His voice has a lot of enthusiasm.
@sadhnamall7357
@sadhnamall7357 2 жыл бұрын
To delete values (95,14,12) we write the code del nums[2:5]
@SidhharthSidhharth-bn8kq
@SidhharthSidhharth-bn8kq 8 ай бұрын
2:4
@akalyam1149
@akalyam1149 4 ай бұрын
Can you pls explain how ur saying 2.4. Pls
@ohm4154
@ohm4154 4 ай бұрын
@@akalyam1149 its 2:5 it does not removes the last index mentioned
@khulisomkwevhu6964
@khulisomkwevhu6964 Ай бұрын
Mine says invalid syntax and red colouring my colon : what does it mean?
@VenkataDattaSaiKumar2005
@VenkataDattaSaiKumar2005 28 күн бұрын
[2:4]
@blenderhander9485
@blenderhander9485 4 жыл бұрын
I am a mechanical engineer and i wanted to learn python and then i found you thanks a lot man!!
@mohammedjishadkp916
@mohammedjishadkp916 4 жыл бұрын
Me too
@vardhaneswar607
@vardhaneswar607 3 жыл бұрын
I'm also...
@adityaprakash8217
@adityaprakash8217 3 жыл бұрын
Which college?
@blenderhander9485
@blenderhander9485 3 жыл бұрын
@@adityaprakash8217 LIET Alwar Rajasthan
@adityaprakash8217
@adityaprakash8217 3 жыл бұрын
@@blenderhander9485 Ohh ok
@afuneralinwhite
@afuneralinwhite 2 жыл бұрын
i finally got to start watching the videos you've made. made it through #1-#6 tonight. absolutely blown away by how helpful these have been. I started my course on intermediate python this semester and am already being tasked with figuring out recursion. I can't wait to see how these videos will help me!
@ABCALFANZO4044
@ABCALFANZO4044 3 жыл бұрын
We need professors like you in colleges and then studying becomes interesting and enjoyable. Doing great job.
@vinodkumar-qw3hv
@vinodkumar-qw3hv 2 жыл бұрын
madda gudu adidi
@pratibha1976
@pratibha1976 4 жыл бұрын
watched a few videos this evening and followed along! very fun, easy, and it can be fast paced at times but that is the advantage of online learning. I can go at my own pace :) Your channel is a great source! Thank you.
@jaunelia354
@jaunelia354 3 жыл бұрын
I've seen many tutorials on python but this one is best especially because the teacher is kind enough to care about beginner, thank you so much,❤️❤️
@ashokjoshi5013
@ashokjoshi5013 3 жыл бұрын
@Telusko There is a workaround for changing Tuple value, We can convert the tuple into a list, change the list, and convert the list back into a tuple. name = ('Ashok','Kiran','John','Steve') changedname = list(name) changedname[1] = 'Rahul' name = tuple(changedname) print(name) Now the name tuple will have the values changed. Output : ----------- ('Ashok', 'Rahul', 'John', 'Steve') Kindly give a heart if this comment was helpful.
@sakshidherange7554
@sakshidherange7554 3 жыл бұрын
ya , It's helpful I also wanted to say same thing ...
@ashokjoshi5013
@ashokjoshi5013 3 жыл бұрын
@@sakshidherange7554 Welcome 😊
@user-lh7ot6pt5c
@user-lh7ot6pt5c Жыл бұрын
Really wanna tell this u r just amazing! The thing I like the most in u r tutorial is u just come to the beginners level mind set and explaining the concept not just like a fully professional going with his flow
@swapnilgour1336
@swapnilgour1336 4 жыл бұрын
Sir, You teach in a very intresting way, that makes me to understand very well. Earlier I thoght that pogramming is quite tough, but after watching these video lecture my perception towards programming has changed a lot. Lastly but not the least, thank you sir for making this video lecture programme.I am really thankful to you sir.
@Fitness77799
@Fitness77799 3 жыл бұрын
my man deserves a billion subscribers i swear great videos man!!
@simplytan
@simplytan 3 жыл бұрын
I came to watch this playlist bcz my friend gave me a challenge to end the first 10 eps in one day. But now I'm excited to learn all these. Thank u for teaching us in an easy and quick way
@aruneshkartik2676
@aruneshkartik2676 2 жыл бұрын
Nice tutor!! concepts get Crystal cleared!! makes programming easy to learn. One of the best tutorials on KZbin.
@pvvdprasad86
@pvvdprasad86 3 жыл бұрын
Explanation of difference between list, tuples, set -> Just what I needed. Teluskunna. Awesome.
@utkalaandhramedia2907
@utkalaandhramedia2907 4 жыл бұрын
Sri garu Meeru super Andi because mee valla ma abbai Python nerchagalugutunnadu hats off to our service sir garu🙌🙌🙌
@maven558
@maven558 5 жыл бұрын
Thank you Navin Reddy for making Python series.
@siddupujari9023
@siddupujari9023 2 жыл бұрын
not everyone can be best at teaching, but You are ...always start with basics.. thats way to go .. good one
@jagdishdora5199
@jagdishdora5199 4 жыл бұрын
Wonderful presentation dear Navin,please continue with your mission,you are doing great service to the learners.Thankyou
@ivanwachira7523
@ivanwachira7523 4 жыл бұрын
best tutorial ever.You make what looks hard be simple.
@ganeshr18
@ganeshr18 5 жыл бұрын
Your lessons are absolutely crystal clear sir!!!!
@sidhuzfire2378
@sidhuzfire2378 2 жыл бұрын
Sir tons of thankz ...you are the best tutor.. I am beginner from a non technical background... but intrested to learn data science..was very confused for where to learn python programming...searched so much...and atlast I got the best one..thanku so much sir..now I feel..yaa I too can do it....I will be always grateful to u sir
@adivijji275
@adivijji275 4 жыл бұрын
Ur channel is a best privilege that a beginner can find .. thank you Navin gaaru
@NikSy
@NikSy 4 жыл бұрын
Thank you Naveen for this great tutorial I would like to add some more point about sets 1) To create an empty set use >>s1 =set() because if you use >> s1 = { } and check >> type(s1) you will get , which means it is treated as an dictionary instead of empty set.
@ankitha8530
@ankitha8530 3 жыл бұрын
>>s1=set() its also showing error yaaar
@manojkumarn9027
@manojkumarn9027 3 жыл бұрын
@@ankitha8530 we can create set using{ }
@adarshsahani1947
@adarshsahani1947 3 жыл бұрын
Thanks
@telugustatus4241
@telugustatus4241 2 жыл бұрын
Both are working
@ananyamahapatra6597
@ananyamahapatra6597 5 жыл бұрын
U giving such a clear picture of everything...I am grateful🥰
@shivkumar-ik9rs
@shivkumar-ik9rs 3 жыл бұрын
You are unbelievable MR.Navin Reddy Garu,in on word AWESOME, Never saw this type of easy Teaching from you Execellent Grip in your knowledge
@oooorrrr5555
@oooorrrr5555 4 жыл бұрын
Thank you so much! I'm rookie in programming and i'm start to like it from your videos! :D
@nirajmaurya7680
@nirajmaurya7680 5 жыл бұрын
These all are interesting and fun to learn 100% best tutorial.......thank a lot for creating
@manassav
@manassav 6 жыл бұрын
your videos just create interest in programming language.... :-)
@mitalkarkar2240
@mitalkarkar2240 2 жыл бұрын
Way of your presentation is very nice, I mean you are not repeating unnecessary sentences over and over again. Awesome work. Thank you.
@lipsa2
@lipsa2 2 жыл бұрын
I really appreciate the way of your teaching. it's formatted, clear and concise.
@sruthir1236
@sruthir1236 3 жыл бұрын
You deserve more and more credits. My best wishes for ur youtube journey sir.
@thatboysavage_official2056
@thatboysavage_official2056 2 жыл бұрын
Your channel is a great source of coding literacy I've watched 10% of the videos on this playlist 1 night . Really appreciate you. Love from Zimbabwe 🇿🇼
@shankargope2475
@shankargope2475 8 ай бұрын
Learning and practicing the foundation concepts of python with utmost clarity👌All thanks to your teaching methods 🙏. The way you have delivered the lectures keeping the simplicity is really very much helpful. Love your teaching sir ❤
@simrannadaf4038
@simrannadaf4038 4 жыл бұрын
Nice tutor!!concepts gets Crystal cleared!!makes programming easy to learn
@Anonymous40412
@Anonymous40412 4 жыл бұрын
Navin sir I must say No human No youtuber No website make me understands like you And the you are the one who bother about beginners and I will make sure that you will have a million subscribers in just few months❤🔥💥
@oomaithamizhan3147
@oomaithamizhan3147 4 жыл бұрын
Now he got..
@educationgames6512
@educationgames6512 3 жыл бұрын
1.35M now
@poojajain4900
@poojajain4900 3 жыл бұрын
The answer to the quiz question.. >>>Del nums [2:5] >>>Nums [25,36,26]
@aditsharma279
@aditsharma279 3 жыл бұрын
A new thing I learnt today
@poojajain4900
@poojajain4900 3 жыл бұрын
@S u m a n t h yes u can pop a number from list.. Eg. >>>Nums = [ 45 , 56 , 67 , 90 ] >>> Nums.pop(1) 56
@gautamsrivastav8330
@gautamsrivastav8330 3 жыл бұрын
Why couldn’t we use nums.remove(2:5)
@poojajain4900
@poojajain4900 3 жыл бұрын
@@gautamsrivastav8330 if you use that syntax.. it will give you a syntax error.. thats because remove parameter takes only argument.. which means if you use remove you can only remove one number at a time from list.. and also you are supposed to mention the number you want to remove inside the bracket... Eg. >>>Nums = [23,56,78,90] >>> Nums.remove(23) >>> Nums [56,78,90]
@gautamsrivastav8330
@gautamsrivastav8330 3 жыл бұрын
@@poojajain4900 one more thing, I've been working on IDLE, as prescribed in the previous lectures, but when I save it, close it and reopen it, I'm not able to continue in that file. I have to start fresh with a new IDLE file and cannot continue with that I was practicing on.
@ramakrishnagubbala2774
@ramakrishnagubbala2774 3 жыл бұрын
Your teaching is really easily understandable and fabulous. It very easy for beginners to get a great knowledge sir👏this is the worthy youtube channel with great lectures teaching point to point
@komal8270
@komal8270 2 жыл бұрын
Thank you so much for these wonderful sessions. You made it really easy to learn for beginners like me. Will recommend to others also. Thank you so much once again.
@prachipalav1640
@prachipalav1640 4 жыл бұрын
You deserve millions of subscribers ❤️
@raviraimittal
@raviraimittal Жыл бұрын
nums=[25,36,95,14,12,26] del nums[2:4] #del function will delete numbers from index 2 to index 4 as required in the quiz print(nums)
@user-ks2if4wj8g
@user-ks2if4wj8g Жыл бұрын
It is [2:5] If [2:4], it won't remove the element 12.
@rajnishcdry
@rajnishcdry 10 ай бұрын
@@user-ks2if4wj8g if [2:5] it will also delete the last element 26.
@rajnishcdry
@rajnishcdry 10 ай бұрын
@@user-ks2if4wj8g if [2:5] it will also delete the last element 26.
@dxrkboyy
@dxrkboyy Ай бұрын
YESSS IT WORKED THANKS!!
@soumiksagarsahoo3147
@soumiksagarsahoo3147 3 жыл бұрын
This I think one of the best tutorial on youtube 👍👍👍hats off to you sir.......
@super_youtube681
@super_youtube681 2 жыл бұрын
BEST OUT OF THE BEST TEACHING FOR BIGGNERS BETTER THAN MOST OF THE CORSES ON OTHER WEBSITES
@sravanienuganti4596
@sravanienuganti4596 4 жыл бұрын
Really it is very good for me to learn with this tutorial
@72407412
@72407412 5 жыл бұрын
I like the way you are teaching. Very nice video
@nirjala8962
@nirjala8962 Жыл бұрын
Sir ur sessions are really helpful....in the beginning i have no idea about python..ur teaching helped me a lot. As I am an IIIT student...I am really enjoying ur sessions...thanku very much sir. 🙏🙏🙏🙏🙏 The way I teach is quite simple and enjoyable.....
@alitdjhe3481
@alitdjhe3481 Жыл бұрын
I just started learning python You are really great ❤❤ Thank you from Egypt 🇪🇬💙💙
@praveenanookala4457
@praveenanookala4457 4 жыл бұрын
I was using python 2.5 and when i used the curly brackets for the set, it showed syntax error. So i installed python 2.7.17 and it is working! Great tutorial, sir!
@LogicalManSujeet
@LogicalManSujeet 6 жыл бұрын
incredible sir...sir i have a ques.. plz upload a video on how to be a data scientist and its skill set .. please provide tutorials also
@Thevivekka
@Thevivekka 4 жыл бұрын
bro..i know basics of python..but I got some 2-month break...this is would be the best tutorial to rewind the basic's and for learning also...appreciate you bro...love from ap
@Alberta_Farmer
@Alberta_Farmer Жыл бұрын
Amazing tutor thank you so much!!! You make the material fun and engaging!
@NikSy
@NikSy 4 жыл бұрын
2) If you use a set inside a set which will lead to an error eg: set_2 = {1,2,3,"hello",{4,5,6}} print(set_2) It will print TypeError: unhashable type: 'set' so instead of that use set_2 = {1,2,3,"hello",(4,5,6)} print(set_2) will print {1, 2, 3, 'hello', (4, 5, 6)}
@sureshkumarp1869
@sureshkumarp1869 3 жыл бұрын
Thank you
@pradeeps4103
@pradeeps4103 2 жыл бұрын
where is the question?! time please
@jagritimahata3042
@jagritimahata3042 Жыл бұрын
can u tell me the difference between index and count? I started learning python today so I dont know it
@prathikbhat
@prathikbhat Жыл бұрын
@@jagritimahata3042 Indexing is position of the number while count is total number of elements
@snehajitchandra2976
@snehajitchandra2976 6 жыл бұрын
Excellent video sir!!!
@user-mo1sk4tv9s
@user-mo1sk4tv9s 10 ай бұрын
thank you so much sir. your every video is very understandable. we need professors like you. and so fortunate to have you sir. once again thank you so much sir thank you.
@anupamasingh6072
@anupamasingh6072 4 жыл бұрын
Best tutorial I have ever watched. Thank you !Sir
@MANISHSHARMA-xk1su
@MANISHSHARMA-xk1su 6 жыл бұрын
Amazing video sir....❤️
@jitendra.nayak5
@jitendra.nayak5 6 жыл бұрын
Its Awesome,Thank you for the series..and i like your way of teaching sir ,its really helpful for us ,Thank You.
@jeevankumars9404
@jeevankumars9404 4 жыл бұрын
Thank you sir for giving us a wonderful teaching. I just wanted to say that you could have also included the explanation of union, intersection and difference methods when you explained about the sets concept. But otherwise, superb tutorials. :)
@datascienceworld7041
@datascienceworld7041 4 жыл бұрын
First I learned java and now its python ,you are the best teacher
@devasish204
@devasish204 4 жыл бұрын
Need more information about how to use those ctrl+space operations for List, set, and Tuple.
@suvopal3234
@suvopal3234 6 жыл бұрын
nums = [25,36,95,14,12,26] To delete values 95,14,12 fire below command : del nums[-4:-1] also del nums[2:5]
@multicourses3421
@multicourses3421 4 жыл бұрын
Del nums = [2:-1]
@thesauceman8931
@thesauceman8931 4 жыл бұрын
@@multicourses3421 it's wrong bro u can't use + and - values together
@AmanTheMystery
@AmanTheMystery 4 жыл бұрын
@@thesauceman8931 plus minus values together can be used
@AmanTheMystery
@AmanTheMystery 4 жыл бұрын
@@multicourses3421 equal to sign remove kar do
@mohdibrahim1995
@mohdibrahim1995 4 жыл бұрын
it will not work as it will not follow index
@r.gouthamsrisaisknowledgeh1636
@r.gouthamsrisaisknowledgeh1636 3 жыл бұрын
I am watching each and every video of python coding on all channels but this is the best I subscribed to your channel thanks for saying coding free
@jobseeker1329
@jobseeker1329 3 жыл бұрын
2day my confusion get way from me about LIST,TUPLE and SET thnk u sir from backbencher loved it
@paraspandey3401
@paraspandey3401 3 жыл бұрын
who are after there class 12th :-)
@user-qp6fx1ft3z
@user-qp6fx1ft3z 19 күн бұрын
Me
@jyotivirendraagrawal1484
@jyotivirendraagrawal1484 8 күн бұрын
Mr
@a.y.making931
@a.y.making931 3 жыл бұрын
answer to the assignment question- del nums[2:5]
@priyajain2890
@priyajain2890 Жыл бұрын
Can you please lemme know, where the assignment questions or quiz questions are given?
@Tushar-dk9fr
@Tushar-dk9fr Жыл бұрын
@@priyajain2890 At the end of video probably in last minute it show in the red box of the screen.
@kavyakunibilli
@kavyakunibilli 4 ай бұрын
I think nums[2:4] because upto we are mentioning
@prosperhopeman9672
@prosperhopeman9672 3 ай бұрын
​@@kavyakunibilliyou are wrong. The poster is correct
@anandmohan1063
@anandmohan1063 2 жыл бұрын
Awesome..... the way you have explained Tuple, List & Set
@valorantclipbaiter2925
@valorantclipbaiter2925 4 жыл бұрын
I have never seen such nice tutor sir.keep it up
@bharatbhatia6000
@bharatbhatia6000 5 жыл бұрын
Undoubtedly your content is awesome!! Just out of the context,i think the starting tone is taken from laughter challenge . Is'nt it? :-p
@mannemsrikanth3655
@mannemsrikanth3655 5 жыл бұрын
Answer for quiz : 1. del nums [2:5] nums [25,36,26] 2. We can also use pop to delete specific index numbers i.e nums.pop(2) nums.pop(3) nums.pop(4) nums [25,36,26]
@Tsr2412
@Tsr2412 2 жыл бұрын
thank you
@vickyrock1418
@vickyrock1418 2 жыл бұрын
We can also use remove
@chembetikarunakar814
@chembetikarunakar814 Жыл бұрын
U get error if u use pop continously because after we use pop it changes its length and we get error pop index out of range
@NR44singer
@NR44singer Жыл бұрын
Can we use nums.remove[2:5]
@aRCi31
@aRCi31 Жыл бұрын
del nums [-4:-1] -- code should be as much as simple and correspond with task
@samyakjaipuria2729
@samyakjaipuria2729 3 жыл бұрын
your videos just create interest in the programming language
@utkarshpant6549
@utkarshpant6549 3 жыл бұрын
Your intro makes me want to watch the whole video is really wholesome 🥰
@mohammadjawaaduddinquraish2806
@mohammadjawaaduddinquraish2806 5 жыл бұрын
I learned java in my 10th grade. Now, I've passed the intermediate education. I feel that python and java are a bit similar because from your #0 lesson I knew everything you thought. It was a good recap though 😅👌🏻. And thank you for these amazing free tutorials!
@anujjain5807
@anujjain5807 4 жыл бұрын
Python is more easy and reliable...Do we have input scanner types of class in python
@trishvisaxena5300
@trishvisaxena5300 5 жыл бұрын
I m big fan urs sir u r amazing
@bhargavreddy9485
@bhargavreddy9485 3 жыл бұрын
Really you are making my process of learning easier..
@mohdghufran1085
@mohdghufran1085 4 жыл бұрын
Nice lecture sir, I didn't know anything about but I have been learning, thanks
@rrsk88_farming
@rrsk88_farming 6 жыл бұрын
I'm enjoying this series 👍
@tobiasprice5378
@tobiasprice5378 5 жыл бұрын
input >>> num = [25,36,95,14,12,26] delete>>> del num [2:5] result >>> num [25, 36, 26] >>>
@sahirkhan369
@sahirkhan369 4 жыл бұрын
nice bro i didnt think of it great
@ShivaPrasad-hm5lk
@ShivaPrasad-hm5lk 4 жыл бұрын
Is it really correct
@ShivaPrasad-hm5lk
@ShivaPrasad-hm5lk 4 жыл бұрын
Pls clear it once how did u numbered it 0,1,2 or1,2,
@saju411
@saju411 3 жыл бұрын
Sir u r really doing aa great job for beginners... Really magnificent sir...!
@manishkumarmani1420
@manishkumarmani1420 3 жыл бұрын
Awesome, Amazing , Excellent session.... Thanks a lot Navin Sir........
@harsiddhisinghdev4650
@harsiddhisinghdev4650 6 жыл бұрын
Thanku sir please explain data science using phython in upcoming vedio's please sir..:-)
@rrsk88_farming
@rrsk88_farming 6 жыл бұрын
What's data science
@jiteshsharma4692
@jiteshsharma4692 5 жыл бұрын
Harsiddhi Singhdev. Yes. Same thing
@jiteshsharma4692
@jiteshsharma4692 5 жыл бұрын
Harsiddhi Singhdev. Hey. Hi. Listen
@prashanthakula2225
@prashanthakula2225 5 жыл бұрын
Yes sir. Please start new session on data science
@shravansbagewadi7603
@shravansbagewadi7603 5 жыл бұрын
@@rrsk88_farming search in Google
@louiseaquinin5960
@louiseaquinin5960 4 жыл бұрын
quiz answer >>> nums=[25,36,95,14,12,26] >>> nums [25, 36, 95, 14, 12, 26] >>> del nums [2:5] >>> nums [25, 36, 26]
@aswins156
@aswins156 2 жыл бұрын
how will 26 come in the set if u put [2:5], you should put [2:4]insteadd
@esuoso
@esuoso 4 жыл бұрын
sir, thank you you teach in an interesting and in a way that i understand
@sanatangoyal8402
@sanatangoyal8402 4 жыл бұрын
sir because of you i can learn these all things in very very evry easy way. salute to you sir
@geetabhatt6889
@geetabhatt6889 4 жыл бұрын
>>>nums=[25,36,95,14,12,26] >>>del nums[2:5] >>>nums [25,36,26]
@sneha.n4843
@sneha.n4843 4 жыл бұрын
geeta bhatt tuple doesn't perform deletion
@ishantchandna2001
@ishantchandna2001 4 жыл бұрын
@@sneha.n4843 It's not a Tuple Just check the Brackets
@yahyakilima2958
@yahyakilima2958 4 жыл бұрын
why is 26 still not deleted?
@ayushalhat1238
@ayushalhat1238 3 жыл бұрын
Sir teaches so well that a fan club can be made of his🙌👍
@gundaaakash946
@gundaaakash946 4 жыл бұрын
Awesome teaching ,,easy to understand thank you for ur python series..
@bhavikakapadia2462
@bhavikakapadia2462 6 жыл бұрын
nums = [23,36,95,14,12,26] del nums[2:5] nums [25,36,26]
@rrsk88_farming
@rrsk88_farming 6 жыл бұрын
Bhavika khatri ? But how
@madhu9829
@madhu9829 6 жыл бұрын
26 should not come
@Skaxarrat
@Skaxarrat 5 жыл бұрын
26 is included because [2:5] would stop at the fifth element without deleting it
@RozaLinda281
@RozaLinda281 5 жыл бұрын
right
@adarshchoubey9694
@adarshchoubey9694 5 жыл бұрын
nums = [23,36,95,14,12,26] del nums[2:-1] nums [25,36,26]
@nitishnitish9172
@nitishnitish9172 4 жыл бұрын
del nums[2:5] or del nums[-4:-1]
@katikisailaja1086
@katikisailaja1086 4 жыл бұрын
NYC
@poojashahemir215
@poojashahemir215 4 жыл бұрын
Best tutorial for beginners... thank you so much
@mayweathermoney5191
@mayweathermoney5191 3 ай бұрын
The best tutor even... you make it easier with all the explanations in your series. You making learning python fun
@thelost8203
@thelost8203 3 жыл бұрын
can we use pop in set? it says "pop() takes no arguments (1 given)" set does not support indexing right? Refrence to 5:33
@arghyabhattacharya7922
@arghyabhattacharya7922 3 жыл бұрын
same question
@thimmarajur1437
@thimmarajur1437 3 жыл бұрын
It doesn't support indexing right......but in sets we cannot specify indexing inside brackets and we can just use .pop() and it removes last element
@unknown__..--
@unknown__..-- 4 жыл бұрын
so the basic difference between list and tupule is () and[] . am i right? remember i am talking about the basic difference.
@manishsharma2211
@manishsharma2211 4 жыл бұрын
List [ ] Tuple ( )
@pineapplejuice3239
@pineapplejuice3239 2 жыл бұрын
bro ur just amazing like god bless u. u actually do things in order and not rush like others. so bless u for teaching this way ur the best
@banaras.wala.foreignaala
@banaras.wala.foreignaala 4 жыл бұрын
Dear Navin, Wonderful Thanks,
@nh4572
@nh4572 3 жыл бұрын
Ans is del nums[2:5] Am i right sir?
@JainHruday
@JainHruday 3 жыл бұрын
Yep
@aarthirajendran299
@aarthirajendran299 4 жыл бұрын
Nums=[25,36,95,14,12,26] Del nums [2:5] O/p = [25,36,26]
@abishakkumarrattanpal5021
@abishakkumarrattanpal5021 4 жыл бұрын
How it's possible
@ShreyaRajBEC
@ShreyaRajBEC 4 жыл бұрын
@@abishakkumarrattanpal5021 as 95,14,12 lie on 2nd , 3rd and 4rt place so we can delete them by typing del[2:5]
@abishakkumarrattanpal5021
@abishakkumarrattanpal5021 4 жыл бұрын
@@ShreyaRajBEC thnx.. basically i'm not from CS background...just for learning I got into this course
@ShreyaRajBEC
@ShreyaRajBEC 4 жыл бұрын
@@abishakkumarrattanpal5021 same here
@abishakkumarrattanpal5021
@abishakkumarrattanpal5021 4 жыл бұрын
@@ShreyaRajBEC which background?
@mohana777G
@mohana777G 2 жыл бұрын
Well explained in an easy way with comparison, thank you so much
@mukundborse6156
@mukundborse6156 2 жыл бұрын
Thank you very much sir. You are really amazing your way to explain the topic is very nice.
@RameshBabu-di5wn
@RameshBabu-di5wn 4 жыл бұрын
del[2:5]
Dictionary in Python
12:24
Telusko
Рет қаралды 1,3 МЛН
#5 Python Tutorial for Beginners | List in Python
10:42
Telusko
Рет қаралды 2,9 МЛН
Hot Ball ASMR #asmr #asmrsounds #satisfying #relaxing #satisfyingvideo
00:19
Oddly Satisfying
Рет қаралды 49 МЛН
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 4,9 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 13 МЛН
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 232 М.
#20 Python Tutorial for Beginners | While Loop in Python
12:43
Telusko
Рет қаралды 1,6 МЛН
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1 МЛН
#10 Python Tutorial for Beginners | Data Types in Python
14:35
Telusko
Рет қаралды 1,5 МЛН
#26 Python Tutorial for Beginners | Array in Python
15:57
Telusko
Рет қаралды 1,2 МЛН
#63 Python Tutorial for Beginners | Exception Handling
15:59
Telusko
Рет қаралды 496 М.
#15 Python Tutorial for Beginners | Python BitWise Operators
12:42
TOP-18 ФИШЕК iOS 18
17:09
Wylsacom
Рет қаралды 807 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 6 МЛН
APPLE совершила РЕВОЛЮЦИЮ!
0:39
ÉЖИ АКСЁНОВ
Рет қаралды 1,9 МЛН
5 НЕЛЕГАЛЬНЫХ гаджетов, за которые вас посадят
0:59
Кибер Андерсон
Рет қаралды 1,6 МЛН
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 774 М.