#6 Python Tutorial for Beginners | Tuple | Set in Python
The Python series on Python continues with a lesson about laser and lists.. The series is a series of lessons on
Python.. The first lesson was supposed to complete tuples and set, but unfortunately, it was a lengthy video so
let 's complete those things in this video. So when we learned about laser it 's very simple right. We have a list
of values. in certain projects. We have this requirement you want a set of values. I don't want to change it so of
course you will go for a tuples. iteration in tuples is faster than in list so that 's where you can use tuples. If you
want to enhance the speed of your execution.. the set uses a concept of hash and using hash we improve the
performance. We want to fetch the element as fast as possible, so it simply says okay just. Go with this go with
the flow, so we want speed then sequence here. set is almost same as list. The difference would be. It will not
maintain the sequence and will not support duplicate values..
The Python series on Python continues with a lesson about laser and lists.. The series is a series of lessons on
Python.. The first lesson was supposed to complete tuples and set, but unfortunately, it was a lengthy video so
let 's complete those things in this video. So when we learned about laser it 's very simple right. We have a list
of values. in certain projects. We have this requirement you want a set of values. I don't want to change it so of
course you will go for a tuples. iteration in tuples is faster than in list so that 's where you can use tuples. If you
want to enhance the speed of your execution.. the set uses a concept of hash and using hash we improve the
performance. We want to fetch the element as fast as possible, so it simply says okay just. Go with this go with
the flow, so we want speed then sequence here. set is almost same as list. The difference would be. It will not
maintain the sequence and will not support duplicate values..