PCL-18: Python TUPLES Data Structures | Questions Practice | Python Tutorial For Beginners 🔥🔥🔥

Publié le: 09 février 2022
sur la chaîne: Data Science by Bhupendra Singh
250
like

What are Tuples in Python ?
Tuples are used to store multiple items in a single variable. Tuple is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Set, and Dictionary, all with different qualities and usage. A tuple is a collection which is ordered and unchangeable.

What is difference between tuple and list?
The key difference between the tuples and lists is that while the tuples are immutable objects the lists are mutable. This means that tuples cannot be changed while the lists can be modified. ... If you have data which is not meant to be changed in the first place, you should choose tuple data type over lists.

What are the advantages of using tuples?
Tuples are fined size in nature i.e. we can't add/delete elements to/from a tuple. We can search any element in a tuple. Tuples are faster than lists, because they have a constant set of values. Tuples can be used as dictionary keys, because they contain immutable values like strings, numbers, etc.


Sur cette page du site, vous pouvez voir la vidéo en ligne PCL-18: Python TUPLES Data Structures | Questions Practice | Python Tutorial For Beginners 🔥🔥🔥 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Data Science by Bhupendra Singh 09 février 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 250 fois et il a aimé like téléspectateurs. Bon visionnage!