Mastering Python Lists and Tuples for Beginners

preview_player
Показать описание
Lists: are just like dynamic sized arrays, declared in other languages (vector in C++ and ArrayList in Java). Lists need not be homogeneous always which makes it the most powerful tool in Python.

Tuple: A Tuple is a collection of Python objects separated by commas. In some ways, a tuple is similar to a list in terms of indexing, nested objects, and repetition but a tuple is immutable, unlike lists that are mutable.
Set: A Set is an unordered collection data type that is iterable, mutable, and has no duplicate elements. Python's set class represents the mathematical notion of a set.

Dictionary: in Python is an ordered (since Py 3.7) [unordered (Py 3.6 & prior)] collection of data values, used to store data values like a map, which, unlike other Data Types that hold only a single value as an element, Dictionary holds key:value pair. Key-value is provided in the dictionary to make it more optimized.#python tuples#tuples in python#python tutorial#python lists$difference between list and tuple#tuple in python#lists and tuples#learn python#list in python#python lists and tuples#python for beginners#list vs tuple#key difference between lists and tuples in python#python list functions#python list methods#python interview questions
Рекомендации по теме