Data Science & Machine Learning
Join this channel to learn data science, artificial intelligence and machine learning with funny quizzes, interesting projects and amazing resources for free For collaborations: @love_data
Больше📈 Аналитический обзор Telegram-канала Data Science & Machine Learning
Канал Data Science & Machine Learning (@datasciencefun) языкового сегмента Английский является активным участником. Сейчас сообщество объединяет 77 377 подписчиков, занимая 1 998 место в категории Образование и 3 955 место в регионе Индия.
📊 Показатели аудитории и динамика
С момента создания невідомо проект демонстрирует стремительный рост, собрав аудиторию из 77 377 подписчиков.
Согласно последним данным от 02 сентября, 2026, канал показывает стабильную активность. За последние 30 дней изменение числа участников составило 331, а за последние 24 часа — 11, при этом общий охват остаётся высоким.
- Статус верификации: Не верифицирован
- Уровень вовлечённости (ER): Средний показатель вовлечённости аудитории составляет 2.54%. В первые 24 часа после публикации контент обычно набирает 1.09% реакций от общего числа подписчиков.
- Охват публикаций: В среднем каждый пост получает 1 966 просмотров. В течение первых суток публикация набирает 844 просмотров.
- Реакции и взаимодействия: Аудитория активно поддерживает контент: среднее количество реакций на один пост — 4.
- Тематические интересы: Контент сосредоточен на ключевых темах, таких как learning, accuracy, distribution, panda, dataset.
📝 Описание и контентная политика
Автор описывает ресурс как площадку для выражения субъективного мнения:
“Join this channel to learn data science, artificial intelligence and machine learning with funny quizzes, interesting projects and amazing resources for free
For collaborations: @love_data”
Благодаря высокой частоте обновлений (последние данные получены 03 сентября, 2026) канал поддерживает актуальность и высокий уровень охвата публикаций. Аналитика показывает, что аудитория активно взаимодействует с контентом, что делает его важной точкой влияния в категории Образование.
def greet():
print("Welcome to Data Science!")
greet()
Output
Welcome to Data Science!🔹 2. Why Do We Use Functions? Functions help you: ✅ Avoid writing duplicate code ✅ Improve code readability ✅ Make debugging easier ✅ Reuse code in multiple places ✅ Build modular applications 🔹 3. Defining a Function Syntax
def function_name():
# Function body
Example:
def welcome():
print("Hello, World!")
welcome()
🔹 4. Function Parameters
Parameters allow you to pass information into a function.
def greet(name):
print("Hello", name)
greet("Deepak")
Output
Hello DeepakHere, "name" is called a parameter. 🔹 5. Function Arguments When calling a function, the values you pass are called arguments.
def square(number):
print(number * number)
square(5)
Output
25Here: • "number" → Parameter • "5" → Argument 🔹 6. Returning Values A function can return a value using the return keyword.
def add(a, b):
return a + b
result = add(10, 20)
print(result)
Output
30Using return allows the function's result to be stored or used later. 🔹 7. Default Parameters You can assign default values to parameters.
def greet(name="Guest"):
print("Hello", name)
greet()
greet("Rahul")
Output
Hello Guest Hello Rahul🔹 8. Multiple Return Values A function can return more than one value.
def calculate(a, b):
return a + b, a * b
sum_value, product = calculate(4, 5)
print(sum_value)
print(product)
Output
9 20🔹 9. Scope of Variables Variables created inside a function are called local variables.
def demo():
message = "Inside Function"
print(message)
demo()
Trying to access
messageoutside the function will produce an error because it exists only inside the function. 🔹 10. Built-in Functions Python provides many ready-to-use functions. Examples:
numbers = [5, 2, 8, 1]
print(len(numbers))
print(max(numbers))
print(min(numbers))
print(sum(numbers))
Output
4 8 1 16🔹 11. Real-World Data Science Example Calculate the average marks of students.
def average(marks):
return sum(marks) / len(marks)
scores = [80, 75, 92, 88]
print(average(scores))
Output
83.75Functions like this are commonly used while cleaning data, calculating statistics, and building machine learning pipelines. 🔹 12. Common Mistakes ❌ Forgetting to Call the Function
def greet():
print("Hello")
# Nothing happens because the function isn't called.
Correct:
greet()
❌ Forgetting to Return a Value
def add(a, b):
a + b
# Correct:
def add(a, b):
return a + b
🎯 Practice Questions
1. Write a function to add two numbers.
2. Create a function to calculate the square of a number.
3. Write a function that checks whether a number is even or odd.
4. Create a function to calculate the average of a list.
5. Write a function that returns the largest of three numbers.
Double Tap ❤️ For Part-7sales = [1000, 2000, 1500, 3000]
total = 0
for amount in sales:
total += amount
print(total)
Output: 7500
🔹 11. Common Mistakes
❌ Forgetting to update the loop variable
count = 1
while count <= 5:
print(count)
This creates an infinite loop because count never changes.
Correct:
count = 1
while count <= 5:
print(count)
count += 1
🎯 Practice Questions
1. Print numbers from 1 to 10 using a "for" loop
2. Print even numbers from 2 to 20
3. Find the sum of numbers from 1 to 100
4. Print all elements of a list using a loop
5. Create a multiplication table of any number using a "for" loop
🎯 Key Takeaways
✅ Use a "for" loop when the number of iterations is known
✅ Use a "while" loop when the number of iterations depends on a condition
✅ range() generates sequences of numbers
✅ break exits the loop immediately
✅ continue skips the current iteration
✅ pass acts as a placeholder
Loops are one of the most important concepts in Python. You'll use them extensively for data processing, feature engineering, machine learning, automation, and solving coding interview questions.
Double Tap ❤️ For Part-6print("Hello")
print("Hello")
print("Hello")
print("Hello")
print("Hello")
Using a loop:
for i in range(5):
print("Hello")
Both produce the same output, but the loop is much shorter and easier to maintain.
🔹 2. Types of Loops in Python
Python provides two main types of loops:
✅ "for" Loop
✅ "while" Loop
🔹 3. The "for" Loop ⭐
A "for" loop is used when you know how many times you want to repeat a task.
Syntax
for variable in sequence:
# Code to execute
Example
for i in range(5):
print(i)
Output:
0
1
2
3
4
Notice that range(5) generates numbers from 0 to 4.
🔹 4. The "range()" Function ⭐
The range() function generates a sequence of numbers.
Example 1
for i in range(5):
print(i)
Output: 0 1 2 3 4
Example 2
for i in range(1, 6):
print(i)
Output: 1 2 3 4 5
Example 3
for i in range(2, 11, 2):
print(i)
Output: 2 4 6 8 10
The third argument is called the step size.
🔹 5. Looping Through a List
fruits = ["Apple", "Banana", "Mango"]
for fruit in fruits:
print(fruit)
Output:
Apple
Banana
Mango
🔹 6. The "while" Loop ⭐
A "while" loop continues executing as long as the condition remains True.
Syntax
while condition:
# Code
Example
count = 1
while count <= 5:
print(count)
count += 1
Output: 1 2 3 4 5
🔹 7. Infinite Loop
Be careful when using "while" loops.
while True:
print("Hello")
This loop never stops unless interrupted.
Always ensure the condition eventually becomes False.
🔹 8. Loop Control Statements ⭐
"break" - Stops the loop immediately
for i in range(10):
if i == 5:
break
print(i)
Output: 0 1 2 3 4
"continue" - Skips the current iteration
for i in range(5):
if i == 2:
continue
print(i)
Output: 0 1 3 4
"pass" - Acts as a placeholder
for i in range(5):
pass
Useful when writing incomplete code.
🔹 9. Nested Loops
A loop inside another loop.
for i in range(3):
for j in range(2):
print(i, j)
Output:
0 0
0 1
1 0
1 1
2 0
2 1
🔹 10. Real-World Data Science Example
Calculate the total sales.if age >= 18:
print("Eligible")
❌ Incorrect Indentation
if age >= 18:
print("Eligible")
Python requires proper indentation.
Correct:
if age >= 18:
print("Eligible")
🔹 11. Real-World Data Science Example
prediction = 0.82
if prediction >= 0.5:
print("Spam Email")
else:
print("Not Spam")
Many Machine Learning classification models use similar logic to convert prediction probabilities into categories.
🎯 Practice Questions
1. Check whether a number is positive or negative.
2. Check whether a person is eligible to vote.
3. Create a grading system using "if...elif...else".
4. Check whether a number is even or odd.
5. Determine the largest of three numbers.
🎯 Key Takeaways
✅ Use "if" to execute code when a condition is True.
✅ Use "else" to execute code when the condition is False.
✅ Use "elif" to check multiple conditions.
✅ Nested "if" statements allow more complex decision-making.
✅ Logical operators (and, or, not) help combine conditions.
✅ The ternary operator provides a concise way to write simple "if...else" statements.
Conditional statements are the foundation of decision-making in Python and are widely used in automation, data analysis, machine learning, and AI applications.
Double Tap ❤️ For Part-5
-----
1.35 ₽ · /balance_help