#6 Python Tutorial for Beginners | Tuple | Set 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 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.

Editing Monitors :

Editing Laptop :

Mics

More Learning :

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

am watching all add not skipping one of the best tutorial on YouTube

bilaltubecom
Автор

I never seen such a nice tutor like you. Keep it up Sir. You are more valuable

streetsidetechnocrats
Автор

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!

afuneralinwhite
Автор

Do you know why we love to learn python under ur guidance??
Coz u bother about beginners 🙏❤️

abhishekkumarav
Автор

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.

pratibha
Автор

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, ❤️❤️

jaunelia
Автор

I am a mechanical engineer and i wanted to learn python and then i found you thanks a lot man!!

blenderhander
Автор

We need professors like you in colleges and then studying becomes interesting and enjoyable. Doing great job.

ABCALFANZO
Автор

Thank you Navin Reddy for making Python series.

maven
Автор

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

simplytan
Автор

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.

swapnilgour
Автор

Sri garu Meeru super Andi because mee valla ma abbai Python nerchagalugutunnadu
hats off to our service sir garu🙌🙌🙌

utkalaandhramedia
Автор

Your lessons are absolutely crystal clear sir!!!!

ganeshr
Автор

my man deserves a billion subscribers i swear great videos man!!

Fitness
Автор

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

lhotptc
Автор

Nice tutor!! concepts get Crystal cleared!! makes programming easy to learn.
One of the best tutorials on YouTube.

aruneshkartik
Автор

best tutorial ever.You make what looks hard be simple.

ivanwachira
Автор

These all are interesting and fun to learn
100% best a lot for creating

nirajmaurya
Автор

Thank you so much!
I'm rookie in programming and i'm start to like it from your videos! :D

oooorrrr
Автор

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

ramakrishnagubbala