#15 Tuple and SETS in Python | Python Tutorial for Beginners

preview_player
Показать описание
welcome to Bytes,
Bytes - Easy way to Learn Python in Tamil
Bytes - Improve your Programming skills
Bytes - Python Tutorial for beginners

There are quite a few data structures available. The builtins data structures are: lists, tuples, dictionaries, strings, sets and frozensets.

Lists, strings and tuples are ordered sequences of objects. Unlike strings that contain only characters, list and tuples can contain any type of objects. Lists and tuples are like arrays. Tuples like strings are immutables. Lists are mutables so they can be extended or reduced at will. Sets are mutable unordered sequence of unique elements whereas frozensets are immutable sets.
Sets vs Lists and Tuples

Lists and tuples are standard Python data types that store values in a sequence. Sets are another standard Python data type that also store values.
The major difference is that sets, unlike lists or tuples, cannot have multiple occurrences of the same element and store unordered values.
Рекомендации по теме
Комментарии
Автор

My favorite sir forever... Even kids will understand ur way of teaching ....

sindhukumar
Автор

when we use sorted function i think it converts tuple to list

santhoshk
welcome to shbcf.ru