Beginner Python Tutorial - Data Collection Types(Lists,Tuples,Sets and Dictionaries) - #5
Hope you found this tutorial helpful
List Methods:
append() - Adds an element at the end of the list
clear() - Removes all the elements from the list
copy() - Returns a copy of the list
count() - Returns the number of elements with the specified value
extend() - Add the elements of a list (or any iterable), to the end of the current list
index() - Returns the index of the first element with the specified value
insert() - Adds an element at the specified position
pop() - Removes the element at the specified position
remove() - Removes the item with the specified value
reverse() - Reverses the order of the list
sort() - Sorts the list
Tuple Methods:
count()- Returns the number of times a specified value occurs in a tuple
index()- Searches the tuple for a specified value and returns the position of where it was found
Set Methods:
difference()- Returns a set containing the difference between two or more sets
difference_update()- Removes the items in this set that are also included in another, specified set
intersection()- Returns a set, that is the intersection of two other sets
intersection_update()- Removes the items in this set that are not present in other, specified set(s)
isdisjoint()- Returns whether two sets have a intersection or not
issubset()- Returns whether another set contains this set or not
issuperset()- Returns whether this set contains another set or not
remove()- Removes the specified element
Returns a set with the symmetric differences of two sets
inserts the symmetric differences from this set and another
union()- Return a set containing the union of sets
DIctionaries:
clear()- Removes all the elements from the dictionary
copy()- Returns a copy of the dictionary
fromkeys()- Returns a dictionary with the specified keys and values
get()- Returns the value of the specified key
items()- Returns a list containing the a tuple for each key value pair
keys()- Returns a list containing the dictionary's keys
pop()- Removes the element with the specified key
popitem()- Removes the last inserted key-value pair
setdefault()- Returns the value of the specified key. If the key does not exist: insert the key, with the specified value
update()- Updates the dictionary with the specified key-value pairs
values()- Returns a list of all the values in the dictionary
Don't forget to subscribe!
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Beginner Python Tutorial - Data Collection Types(Lists,Tuples,Sets and Dictionaries) - #5», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.