Loops and Control Structures in Python | Lambda Function in Python | Map and Filter in Python

Опубликовано: 02 Апрель 2023
на канале: Learning Data Science
239
3

Thank You for watching the video, hope you understood the concept 🙂
Links to other videos:
1. Introduction to Python:    • Introduction to Python | Python Tutor...  
2. Loops and Control Structures:    • Loops and Control Structures in Pytho...  
3. NumPy Arrays:    • NumPy Arrays | Numpy Arange | Numpy L...  
4. NumPy Indexing and Selection:    • NumPy Indexing and Selection | Fancy ...  
5. NumPy Operations:    • Numpy Operations | Numpy arithmetic O...  
6. Pandas in Python:    • Pandas in Python| Series in Pandas | ...  
7. DataFrames in Pandas:    • Data frames in Pandas | Data frames i...  
8. Handling missing data with Pandas:    • Handling Missing Data with Pandas in ...  
9. Pandas operations:    • Pandas Operations | GroupBy with Pand...  
10. Exploratory Data Analysis:    • Exploratory Data Analysis - 1 | EDA w...  
11. Matplotlib in Python:    • Matplotlib in Python | Data Visualiza...  

#loops_in_python #controlstatements_in_python #lambda_expression_in_python #map_in_python #filter_in_python #elif_in_python #methods_in_python

Loops and control structures in Hindi... ✨

Learn and understand loops and control structures in Python. In this video following topics are discussed with example:
🔹 Comparison Operators
-- In Python, comparison operators are used to compare two values and return a Boolean value (True or False) based on the result of the comparison.

🔸 Logic Operators
-- In Python, logical operators are used to combine two or more Boolean expressions and return a Boolean value (True or False) based on the result of the combination.
Boolean value (True or False) based on the result of the combination.
The following logical operators are available in Python:
➡ and: returns True if both expressions are True
➡ or: returns True if at least one expression is True
➡ not: returns the opposite of the expression (True if the expression is False, and False if the expression is True)

🔹 if, elif, else Statements
-- The if-else statement provides an else block combined with the if statement which is executed in the false case of the condition. If the condition is true, then the if-block is executed. Otherwise, the else-block is executed.

🔸 for Loops
-- In Python, the for loop is used to run a block of code for a certain number of times. It is used to iterate over any sequences such as list, tuple, string, etc.

🔹 while Loops
-- Python while loop is used to run a block code until a certain condition is met.

🔸 range()
-- Python for Loop with Python range()
A range is a series of values between two numeric intervals. We use Python's built-in function range() to define a range of values.

🔹 list comprehension
-- A Python list comprehension consists of brackets containing the expression, which is executed for each element along with the for loop to iterate over each element in the Python list. Python List comprehension provides a much more short syntax for creating a new list based on the values of an existing list.

🔸 functions
-- A function is a collection of related assertions that performs a mathematical, analytical, or evaluative operation. A collection of statements called Python Functions returns the particular task

🔹 lambda expressions
-- a lambda function is a special type of function without the function name.

🔸 map and filter
-- The map function takes each item in a given iterable and and includes all of them in a
new lazy iterable, transforming each item along the way
-- The filter function doesn't transform the items, but it's selectively picks out which
items it should include in the new lazy iterable.

🔹 methods
-- By definition, a method is a function that is bound to an instance of a class


Смотрите видео Loops and Control Structures in Python | Lambda Function in Python | Map and Filter in Python онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Learning Data Science 02 Апрель 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 23 раз и оно понравилось людям.