RUVIDEO
Поделитесь видео 🙏

List Methods and Functions in Python: zip(), range(), .join() - Part 3 Series A

This is the final of three videos where I go over the basics of how to work with lists in Python. I am not an expert when it comes to Python, but I know that teaching a subject helps solidify the information learned about.

This is Series A

Series A = 1
Series B = 2

Each series is intended to be better than the last because of all the practice I'll get in creating them.

✔ Other Places to Connect:
My Website: https://dougm.io/

✔ Support Through Patreon:
https://www.patreon.com/user?u=32220759&fan_landing=true

✔Learn More about Lists at - w3schools
https://www.w3schools.com/python/python_lists.asp

✔Additional Practice Questions
https://github.com/MorrowG2/YouTube_Practice

✔Practice Questions
https://github.com/MorrowG2/YouTube_Practice/blob/master/list_part3_zip_list_range_and_other_fun

# Lists Part 3

a,b,c, *remainder = [1,2,3,4,5,6,7,8]

print(a)
print(b)
print(c)
print(remainder)

# Reverse with -1
# .reverse() or [::-1] or -x
# list() with range(0,100,-1)
# range in steps?
# .join()
# zip()
# unpacking lists (need new list for this)

# 1. Reverse the order of the below lists
# ['Over', 'Blue', 'Tyrion', 'Sound', 'Cloud_9', 'Mug', 1, 2, 3]
# ['road', 'brick', 'yellow','the','Down']
# ['(^_^)', '(*_*)', "('-')", "('')_(*_*)_('')"]
# [66,44,22,'World','Hello']
# [1,2,3,4,5,6,7,8]
# ['Few', 'Yellow', True, 101, False, 'Egg', 'Easter', 'Banana']
# ------------------------------------------------------------------------------------------------------
# 2. Convert the following into a list
# ('Over', 'Blue', 'Tyrion', 'Sound', 'Cloud_9', 'Mug', 1, 2, 3)
# {'road', 'brick', 'yellow','the','Down'}
# {'(^_^)', '(*_*)', "('-')", "('')_(*_*)_('')"}
# {66,44,22,'World','Hello'}
# (1,2,3,4,5,6,7,8)
# ('Few', 'Yellow', True, 101, False, 'Egg', 'Easter', 'Banana')
# range(100)
# range(1,100, 2)
# range(1,100, -1)
# range(1, 100, -2)
# ------------------------------------------------------------------------------------------------------
# 3. What does range() do? Try the below.
# for i in range(100):
# print(i)
# ------------------------------------------------------------------------------------------------------
# 4. Can you use .join() with integers and strings?
# What about integers and booleans?
# What about just integers?
# oscar = ['h', 'o', 'h', 'o', 'h', 'o']
# What does ' '.join(oscar) do - if you print it?
# ------------------------------------------------------------------------------------------------------
# 5. zip() How can you use zip() with the below lists? Remember list() will turn the values into a list.
# blue = ['Over', 'Blue', 'Tyrion', 'Sound', 'Cloud_9', 'Mug', 1, 2, 3]
# yellow = ['road', 'brick', 'yellow','the','Down']
# green = ['(^_^)', '(*_*)', "('-')", "('')_(*_*)_('')"]
# red = [66,44,22,'World','Hello']
# pink = list((1,2,3,4,5,6,7,8))
# final = list(('Few', 'Yellow', True, 101, False, 'Egg', 'Easter', 'Banana'))
# trial = list(range(100))
# epic = range(1,100, 2)
# transform = list(range(1,100, -1))
# yep = list(range(1, 100, -2))

# Example:
epic = range(1,100, 2)
my_list = range(1, 100, 2)
together = list(zip(epic, my_list))
print(together)

# tip rather than list(), you can also use tuple()

# 2.1 Zip each of the variables above together in sets of 2, 3, 4, and so on. Can you zip all of the variables?


# ------------------------------------------------------------------------------------------------------
# 3. Use the lists above and unpack them.
# How could you unpack each list?
# Do you need a *, or a,b,c,d?
# How many positions are held within each list?
# How many variables can be assigned to each list?
# ------------------------------------------------------------------------------------------------------
# 4. Additional Practice - Delete all of the lists above and create your own lists to practice with.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «List Methods and Functions in Python: zip(), range(), .join() - Part 3 Series A», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.