Python List Comprehension Exercise for Beginners | Learn Python Programming | part-2 | Data science
Transcription:
00:00 1) Find all of the numbers form 1-1000 that are divisible by 7
05:05 2) Count the number of spaces in stings.
09:05 3) Find the common number in two lists, list a =[1,2,3,4],b=[2,3,4,5]
11:40 4) Get only the numbers in a sentence like "In 1984 there were 13 instances of a protest with over 1000 people attending ". Result is a list of number like [ 376, 300]
15:22 5) Find all of the words in a string that are less than 4 letters. String is "On a summer day somner, smith went simming in the sun and his red skin stung"
17:46 6 7 8) Given numbers = range(20), produce a list containing the word 'even' if a number in the numbers is even, and the word 'odd' if the number is odd. Result would look like ['odd','odd', 'even']
25:17 9) Calling functions inside list comprehension
Welcome to our YouTube channel! In this video, we will be diving into the powerful concept of list comprehension in Python, perfect for beginners who are learning Python programming.
List comprehension is a concise and efficient way to create lists in Python, and it can be a powerful tool for writing clean and readable code. In this exercise, we will walk you through step-by-step how to use list comprehensions to create and manipulate lists in Python.
We will start with the basics and gradually progress to more complex examples. You'll learn how to create lists with list comprehensions, use conditional statements to filter elements, and perform operations on each element in a list using list comprehensions. We will also cover common use cases for list comprehensions, such as flattening nested lists and generating mathematical sequences.
This exercise is designed for beginners who have a basic understanding of Python syntax and want to improve their skills in list manipulation. By the end of this video, you will have a solid understanding of list comprehensions and how to use them effectively in your Python programming projects.
Contact with me
1. Instagram:
https://www.instagram.com/bohara_chhetri/
2. Check out the YouTube channel:
https://www.youtube.com/channel/UCpn1Aq4Jj8IClKs1muOdWBA
3. LinkedIn:
https://www.linkedin.com/in/sudip-bohara-chhetri-2534b0259/
4. Facebook:
https://www.facebook.com/profile.php?id=100027496141043
5. GitHub:
https://github.com/sudip125
6. Kaggle
https://www.kaggle.com/sudip11
#ListComprehensionforbeginners
#listinpython
#listcomprehensioninnepali
#list
#pythonprogramminglanguage
#listcomprehension
#artificialintelligence
#deeplearning
#listinhindi
#listcomprehensioninhindi
#pythonlist
#pythonlistcomprehesion
#blockchains
#datascience
#datascientist
#violinplotinhindi
#naivebayes
#MLalgorithm
#mlengineering
#machinelearning
#artificialintelligence
#deeplearning
#blockchains
#iot
#hacking
#hacker
#naiveBayesClassifierAlgorithminHindi
#naiveBayesClassifierAlgorithm
#blackhathacker
#whitehathacker
#pythonlanguage
#sklearn
#pandas
#numpy
#seaborn
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Python List Comprehension Exercise for Beginners | Learn Python Programming | part-2 | Data science», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.