Data Science & Machine Learning
前往频道在 Telegram
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 346 名订阅者,在 教育 类别中位列第 1 994,并在 印度 地区排名第 3 945 位。
📊 受众指标与增长动态
自 невідомо 创建以来,项目保持高速增长,吸引了 77 346 名订阅者。
根据 31 八月, 2026 的最新数据,频道保持稳定运转。过去 30 天订阅人数变化为 374,过去 24 小时变化为 17,整体触达仍然可观。
- 认证状态: 未认证
- 互动率 (ER): 平均受众互动率为 2.66%。内容发布后 24 小时内通常能获得 1.11% 的反应,占订阅者总量。
- 帖子覆盖: 每篇帖子平均可获得 2 059 次浏览,首日通常累积 856 次浏览。
- 互动与反馈: 受众积极参与,单帖平均反应数为 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”
凭借高频更新(最新数据采集于 01 九月, 2026),频道始终保持新鲜度与高覆盖。分析显示受众积极互动,使其成为 教育 类别中的关键影响点。
77 346
订阅者
+1724 小时
+627 天
+37430 天
帖子存档
Which keyword is used to return a value from a function?
Which keyword is used to define a function in Python?
📈 𝗗𝗮𝘁𝗮 𝗔𝗻𝗮𝗹𝘆𝘁𝗶𝗰𝘀 𝗙𝗥𝗘𝗘 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗖𝗼𝘂𝗿𝘀𝗲😍
Data Analytics is one of the most in-demand skills in today’s job market 💻
✅ Beginner Friendly
✅ Industry-Relevant Curriculum
✅ Certification Included
✅ 100% Online
𝗘𝗻𝗿𝗼𝗹𝗹 𝗙𝗼𝗿 𝗙𝗥𝗘𝗘👇:-
https://pdlink.in/4wh2ugB
🎯 Don’t miss this opportunity to build high-demand skills!
🚀 Data Science Roadmap 2026
📘 Phase 1: Programming Fundamentals
🐍 Topic 6: Python Functions
So far, you've learned variables, operators, input/output, conditional statements, and loops. As your programs grow larger, writing the same code repeatedly becomes inefficient. That's where functions come in.
A function is a reusable block of code that performs a specific task. Functions make your code cleaner, easier to maintain, and reusable.
Functions are heavily used in Data Science, Machine Learning, and AI because they allow you to organize complex workflows into smaller, manageable pieces.
🔹 1. What is a Function?
A function is a named block of code that executes only when it is called.
Instead of writing the same logic multiple times, you write it once inside a function and reuse it whenever needed.
Example
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-7Final 6 Hours Left!
To register for TiHAN IIT Hyderabad's AI & ML Program.
Don't miss your chance to:
• Learn from India's best scientists at TiHAN, IIT Professors and industry experts
• Direct Interview at TiHAN IIT Hyderabad with 9+ CGPA
Register before the Admission Closes!
Data is the fuel but AI is the Machinery.
The people who know how to use both will lead the future.
Become one with TiHAN IIT Hyderabad's AI & ML Program.
✅ Learn live from TiHAN scientists, IIT professors & industry experts
✅ Build hands-on projects with Flipkart & Mamaearth
✅ Assured interview at TiHAN IIT Hyderabad with 9+ CGPA
✅ Placement support across 5000+ companies through Masai
Online Entrance Exam: 19th July
🔗 Register: https://tinyurl.com/datasimplifier-17jul-tihan-006
What is the output of the following code?
total = 0
for i in range(1, 4): total += i print(total)
Which statement about the while loop is correct?
Which keyword is used to immediately terminate a loop?
Which loop is generally used when you know the number of iterations in advance?
🚀 𝟲 𝗠𝘂𝘀𝘁-𝗧𝗮𝗸𝗲 𝗖𝗼𝘂𝗿𝘀𝗲𝘀 𝗧𝗼 𝗨𝗽𝗴𝗿𝗮𝗱𝗲 𝗬𝗼𝘂𝗿 𝗥𝗲𝘀𝘂𝗺𝗲 𝗙𝗢𝗥 𝗙𝗥𝗘𝗘
Make your resume stand out to recruiters without spending a single rupee
✅ 100% FREE Learning
✅ Free Certificates
✅ Beginner-Friendly
✅ Self-Paced Learning
✅ Resume & LinkedIn Boost
✅ Industry-Relevant Skills
𝗘𝗻𝗿𝗼𝗹𝗹 𝗙𝗼𝗿 𝗙𝗥𝗘𝗘👇:-
https://pdlink.in/3Rmbzp1
🚀 Learn for Free. Get Certified. Upgrade Your Resume. Land Your Dream Job!
𝗗𝗮𝘁𝗮 𝗦𝗰𝗶𝗲𝗻𝗰𝗲 𝗙𝗥𝗘𝗘 𝗢𝗻𝗹𝗶𝗻𝗲 𝗠𝗮𝘀𝘁𝗲𝗿𝗰𝗹𝗮𝘀𝘀 😍
💫 Know The Tools, Skills & Mindset to Land your first Job
💫Understand the Foundations, tools, skills & the core essentials that you need to excel in the Data Science domain.
Eligibility :- Students ,Freshers & Working Professionals
𝗥𝗲𝗴𝗶𝘀𝘁𝗲𝗿 𝗙𝗼𝗿 𝗙𝗥𝗘𝗘👇 :-
https://pdlink.in/4btjs2G
( Limited Slots ..Hurry Up )
Date & Time :- 17th July 2026 , 7:00 PM
sales = [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-6🚀 Data Science Roadmap 2026
📘 Phase 1: Programming Fundamentals
🐍 Topic 5: Python Loops ("for" & "while")
Welcome back! 👋
In the previous lesson, you learned how Python makes decisions using if, elif, and else. Now it's time to learn how to repeat tasks automatically using loops.
Loops are one of the most powerful concepts in Python. Instead of writing the same code multiple times, you can use loops to execute a block of code repeatedly.
In Data Science, loops are commonly used to process datasets, automate repetitive tasks, iterate through lists, and build machine learning workflows.
🔹 1. What is a Loop?
A loop is used to execute a block of code multiple times until a condition is met.
Without loops:
print("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.🚀 𝗙𝗥𝗘𝗘 𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗖𝗼𝘂𝗿𝘀𝗲𝘀 💻🔥
These FREE courses can help you learn Data Analytics, Power BI & Excel skills that companies actually hire for 🚀
✨ What you’ll learn:
✔ Excel + Power BI 📊
✔ Data Cleaning with Power Query
✔ Interactive Dashboards
✔ Modern Analytics Skills
💯 Beginner Friendly + FREE Learning
𝗘𝗻𝗿𝗼𝗹𝗹 𝗙𝗼𝗿 𝗙𝗥𝗘𝗘👇:-
https://pdlink.in/4tkPNyM
🎓 Perfect for Students, Freshers & Career Switchers
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🚀 Data Science Roadmap 2026
📘 Phase 1: Programming Fundamentals
🐍 Topic 4: Python Conditional Statements (if, elif, else)
Welcome back! 👋
In the previous lesson, you learned how to take input from users and display output. Now it's time to learn how Python makes decisions.
Conditional statements allow a program to execute different blocks of code based on whether a condition is True or False.
They are one of the most important concepts in Python and are used extensively in Data Science, Machine Learning, and real-world applications.
🔹 1. What are Conditional Statements?
Conditional statements help Python decide which code should run based on a condition.
Think of it like making everyday decisions:
• If it's raining → Carry an umbrella.
• Else → Wear sunglasses.
Similarly, Python checks a condition and decides what to execute.
🔹 2. The "if" Statement
The "if" statement executes a block of code only if the condition is True.
Syntax
if condition:
# Code to execute
Example
age = 20
if age >= 18:
print("Eligible to vote")
Output
Eligible to vote
🔹 3. The "if...else" Statement
Use "else" when you want to execute another block if the condition is False.
Example
age = 16
if age >= 18:
print("Eligible to vote")
else:
print("Not eligible to vote")
Output
Not eligible to vote
🔹 4. The "if...elif...else" Statement ⭐
Use "elif" when you need to check multiple conditions.
Example
marks = 85
if marks >= 90:
print("Grade A")
elif marks >= 75:
print("Grade B")
elif marks >= 60:
print("Grade C")
else:
print("Grade D")
Output
Grade B
Python checks conditions from top to bottom and executes the first condition that is True.
🔹 5. Nested "if" Statements
You can place one "if" statement inside another.
Example
age = 25
citizen = True
if age >= 18:
if citizen:
print("Eligible to vote")
Output
Eligible to vote
🔹 6. Using Logical Operators
Conditional statements often use logical operators.
"and"
age = 25
if age >= 18 and age <= 60:
print("Working Age")
"or"
marks = 35
if marks >= 40 or marks == 35:
print("Eligible for Grace Marks")
"not"
is_holiday = False
if not is_holiday:
print("Go to Office")
🔹 7. Checking Multiple Conditions
salary = 60000
experience = 4
if salary > 50000 and experience >= 3:
print("Eligible for Promotion")
else:
print("Not Eligible")
🔹 8. Ternary Operator ⭐
A shorter way to write an "if...else" statement.
Syntax
value_if_true if condition else value_if_false
Example
age = 20
status = "Adult" if age >= 18 else "Minor"
print(status)
Output
Adult
🔹 9. Real-World Example
temperature = 38
if temperature > 35:
print("It's a hot day.")
elif temperature >= 20:
print("Weather is pleasant.")
else:
print("It's cold.")
🔹 10. Common Mistakes
❌ Missing Colon
if age >= 18
print("Eligible")
This gives a SyntaxError.
Correct:🚀 𝗧𝗼𝗽 𝟱 𝗦𝗸𝗶𝗹𝗹𝘀 𝗧𝗼 𝗠𝗮𝘀𝘁𝗲𝗿 𝗜𝗻 𝟮𝟬𝟮𝟲 – 𝗘𝗻𝗿𝗼𝗹𝗹 𝗙𝗼𝗿 𝗙𝗥𝗘𝗘! 🎓
Want to build a high-paying, future-ready career? 🔥 Start learning the most in-demand skills:
💫 AI & ML :- https://pdlink.in/4phANS2
📊 Data Analytics :- https://pdlink.in/4wh2ugB
🔐 Cyber Security :- https://pdlink.in/4wCW7DJ
☁️ Cloud Computing :- https://pdlink.in/4yhBuie
💻 Other Tech Skills :- https://pdlink.in/4peUslB
📢 Share with your friends & college groups! 🚀🔥
Here’s how luck finds you:
1. Work harder than expected
2. Stay teachable
3. Give unselfishly
4. Read and write more
5. Show up on time
6. Quit complaining
7. Develop good manners
8. Be humble and show gratitude
9. Be kind and generous
10. Surround yourself with smarter people
Which is the recommended way to format strings in modern Python?
