🚀 FUTURESTACK
💻 Coding Tip You Should Know
👉 Don’t memorize code ❌
Understand logic ✅
🔥 Why this matters
🧠 Helps in interviews
💪 Improves problem solving
🚀 Makes learning easier
💡 Do this instead
❓ Ask why this works
🔄 Try different approaches
🧩 Break problems into steps
⚡ Reality
Memorizing ❌
Understanding ✅
🎯 Pro Tip
If you can explain it, you know it 💡
📌 Share this with your friends 🔁
📌 Follow FutureStack for daily AI, Cloud & Coding 🚀
💻 Coding Tip You Should Know
👉 Don’t memorize code ❌
Understand logic ✅
🔥 Why this matters
🧠 Helps in interviews
💪 Improves problem solving
🚀 Makes learning easier
💡 Do this instead
❓ Ask why this works
🔄 Try different approaches
🧩 Break problems into steps
⚡ Reality
Memorizing ❌
Understanding ✅
🎯 Pro Tip
If you can explain it, you know it 💡
📌 Share this with your friends 🔁
📌 Follow FutureStack for daily AI, Cloud & Coding 🚀
Starting Python From basics to learn it in 3 weeks ✅
Plan ✅
🟢 UNIT 1 – BASICS (Foundation)
👉 Day 1 – What is Python + Features
👉 Day 2 – Variables & Data Types
👉 Day 3 – Input & Output
👉 Day 4 – Operators
⸻
🟡 UNIT 2 – CONTROL FLOW (Logic Building)
👉 Day 5 – If / Else Conditions
👉 Day 6 – Nested If + Practice
👉 Day 7 – For Loop
👉 Day 8 – While Loop
👉 Day 9 – Break & Continue
⸻
🔵 UNIT 3 – DATA STRUCTURES
👉 Day 10 – Lists
👉 Day 11 – Tuples
👉 Day 12 – Dictionaries
👉 Day 13 – Sets
⸻
🟣 UNIT 4 – FUNCTIONS & LOGIC
👉 Day 14 – Functions Basics
👉 Day 15 – Function Arguments + Mini Project
⸻
🎯 BONUS (OPTIONAL – HIGH VALUE 🔥)
👉 Day 16 – File Handling
👉 Day 17 – Exception Handling
👉 Day 18 – OOP Basics
Plan ✅
🟢 UNIT 1 – BASICS (Foundation)
👉 Day 1 – What is Python + Features
👉 Day 2 – Variables & Data Types
👉 Day 3 – Input & Output
👉 Day 4 – Operators
⸻
🟡 UNIT 2 – CONTROL FLOW (Logic Building)
👉 Day 5 – If / Else Conditions
👉 Day 6 – Nested If + Practice
👉 Day 7 – For Loop
👉 Day 8 – While Loop
👉 Day 9 – Break & Continue
⸻
🔵 UNIT 3 – DATA STRUCTURES
👉 Day 10 – Lists
👉 Day 11 – Tuples
👉 Day 12 – Dictionaries
👉 Day 13 – Sets
⸻
🟣 UNIT 4 – FUNCTIONS & LOGIC
👉 Day 14 – Functions Basics
👉 Day 15 – Function Arguments + Mini Project
⸻
🎯 BONUS (OPTIONAL – HIGH VALUE 🔥)
👉 Day 16 – File Handling
👉 Day 17 – Exception Handling
👉 Day 18 – OOP Basics
🚀 DAY 1 – What is Python?
Python is a simple and powerful programming language used to build websites, apps, automation, AI, and more.
⸻
📘 Why Python?
✔ Easy to learn (beginner friendly) ✔ Used in AI, Data Science, Web Development ✔ Huge demand in jobs 💼 ✔ Works on all platforms
⸻
💻 Example Code
⸻
📤 Output
⸻
🌐 Try it Online (No Setup Needed)
👉 https://www.mycompiler.io/online-python-compiler
⸻
⚡ Pro Tip
👉 Python is case-sensitive 👉
⸻
🎯 Use Cases
🌐 Web Development 📊 Data Science 🤖 Artificial Intelligence ⚙ Automation
⸻
🔥 Start Today
Don’t wait for perfect time — just start coding 💪
⸻
🔁 Share with friends who want to learn coding 🚀
📢 Join our channel for daily content 👇🔥
👉 https://t.me/futurestack45
Python is a simple and powerful programming language used to build websites, apps, automation, AI, and more.
⸻
📘 Why Python?
✔ Easy to learn (beginner friendly) ✔ Used in AI, Data Science, Web Development ✔ Huge demand in jobs 💼 ✔ Works on all platforms
⸻
💻 Example Code
print("Hello, World!")
⸻
📤 Output
Hello, World!
⸻
🌐 Try it Online (No Setup Needed)
👉 https://www.mycompiler.io/online-python-compiler
⸻
⚡ Pro Tip
👉 Python is case-sensitive 👉
print should always be in lowercase⸻
🎯 Use Cases
🌐 Web Development 📊 Data Science 🤖 Artificial Intelligence ⚙ Automation
⸻
🔥 Start Today
Don’t wait for perfect time — just start coding 💪
⸻
🔁 Share with friends who want to learn coding 🚀
📢 Join our channel for daily content 👇🔥
👉 https://t.me/futurestack45
myCompiler
Online Python Compiler - myCompiler
Online Python Compiler - Edit, Compile and Run your Python code online with myCompiler IDE. Simple and easy to use IDE to edit, run and test your Python code.
🚀 DAY 2 – Variables & Data Types
📦 Variables are used to store data values in Python.
⸻
📘 What is a Variable?
👉 A variable is like a container that holds data 👉 No need to declare type (Python is smart 😎)
⸻
🔢 Data Types in Python
✔
⸻
💻 Example Code
⸻
📤 Output
⸻
🌐 Try it Online (No Setup Needed)
👉 https://www.mycompiler.io/online-python-compiler
⸻
⚡ Pro Tip
👉 No need to write
⸻
🎯 Real Use
👤 Store user name 📊 Store marks ✅ Store login status
⸻
🔥 Keep Learning
Small steps daily = Big success 💯
⸻
🔁 Share with friends who want to learn coding 🚀
📢 Join our channel for daily content 👇🔥
👉 https://t.me/futurestack45
📦 Variables are used to store data values in Python.
⸻
📘 What is a Variable?
👉 A variable is like a container that holds data 👉 No need to declare type (Python is smart 😎)
⸻
🔢 Data Types in Python
✔
int → Numbers (10, 100) ✔ float → Decimal (10.5, 99.9) ✔ str → Text (“Hello”) ✔ bool → True / False⸻
💻 Example Code
a = 10 # int
b = 5.5 # float
name = "Mani" # string
is_active = True # boolean
print(a)
print(b)
print(name)
print(is_active)
⸻
📤 Output
10
5.5
Mani
True
⸻
🌐 Try it Online (No Setup Needed)
👉 https://www.mycompiler.io/online-python-compiler
⸻
⚡ Pro Tip
👉 No need to write
int, float, etc. 👉 Python automatically detects data type 🔥⸻
🎯 Real Use
👤 Store user name 📊 Store marks ✅ Store login status
⸻
🔥 Keep Learning
Small steps daily = Big success 💯
⸻
🔁 Share with friends who want to learn coding 🚀
📢 Join our channel for daily content 👇🔥
👉 https://t.me/futurestack45
myCompiler
Online Python Compiler - myCompiler
Online Python Compiler - Edit, Compile and Run your Python code online with myCompiler IDE. Simple and easy to use IDE to edit, run and test your Python code.
❤1
💡 Practice Coding Platforms
👉 Start solving from basic level 👇
🔹 https://www.hackerrank.com
🔹 https://www.hackerearth.com
🔹 https://leetcode.com
🔹 https://www.codechef.com
⸻
📚 Best Learning Sources
🎥 YouTube (free learning)
📘 W3Schools – easy explanations
📗 GeeksforGeeks – detailed concepts
👉 Start solving from basic level 👇
🔹 https://www.hackerrank.com
🔹 https://www.hackerearth.com
🔹 https://leetcode.com
🔹 https://www.codechef.com
⸻
📚 Best Learning Sources
🎥 YouTube (free learning)
📘 W3Schools – easy explanations
📗 GeeksforGeeks – detailed concepts
Hackerrank
HackerRank - Online Coding Tests and Technical Interviews
HackerRank is the market-leading coding test and interview solution for hiring developers. Start hiring at the pace of innovation!
We just crossed 100+ members 🚀
Thank you everyone for your support ❤️
This is just the beginning 💪
⸻
📈 What you’ll get here:
🐍 Python from basics to advanced
💻 Coding tips & tricks
🤖 AI tools & updates
☁️ Cloud & tech content
⸻
🚀 What’s next?
👉 Daily posts (no breaks 🔥)
👉 Real-world coding examples
👉 Practice questions
⸻
💬 Small request
If you find this helpful 🙏
👉 Share this channel with your friends
Let’s grow together 💯
⸻
📢 Join & Support 👇
👉 https://t.me/futurestack45
Thank you everyone for your support ❤️
This is just the beginning 💪
⸻
📈 What you’ll get here:
🐍 Python from basics to advanced
💻 Coding tips & tricks
🤖 AI tools & updates
☁️ Cloud & tech content
⸻
🚀 What’s next?
👉 Daily posts (no breaks 🔥)
👉 Real-world coding examples
👉 Practice questions
⸻
💬 Small request
If you find this helpful 🙏
👉 Share this channel with your friends
Let’s grow together 💯
⸻
📢 Join & Support 👇
👉 https://t.me/futurestack45
Telegram
FutureStack ☁️⚡
AI | Cloud | Coding | Tech Trends
Learn - Build - Grow ❤️
Job Updates: https://t.me/thinkcareers
Learn - Build - Grow ❤️
Job Updates: https://t.me/thinkcareers
🚀 DAY 3 – Input & Output (Detailed)
⌨️ Input → Taking data from user 📤 Output → Displaying result on screen
⸻
📘 1. Output in Python (
print()
)
👉 Used to display text or values
💻 Example
⸻
📘 2. Input in Python (
input()
)
👉 Used to take data from user
💻 Example
⸻
📌 Important Point
👉
⸻
📘 3. Type Conversion (Very Important 🔥)
👉 Convert input into required type
💻 Example
⸻
📘 4. Multiple Inputs
👉 You can take multiple values
💻 Example
⸻
📘 5. Formatted Output (Clean Printing)
👉 Use f-strings (modern way 🔥)
⸻
🌐 Try it Online
👉 https://www.mycompiler.io/online-python-compiler
⸻
⚡ Pro Tips
✔
⸻
🎯 Real Use Cases
👤 Login Forms 📊 Taking marks input 🎮 Games & quizzes 🧾 User registration systems
⸻
🔥 Practice Task
👉 Take 2 numbers from user 👉 Print their sum
⸻
🔁 Share with friends who want to learn coding 🚀
📢 Join our channel for daily content 👇🔥
👉 https://t.me/futurestack45
⌨️ Input → Taking data from user 📤 Output → Displaying result on screen
⸻
📘 1. Output in Python (
print()
)
👉 Used to display text or values
💻 Example
print("Hello World")
print(10)
📤 OutputHello World
10
⸻
📘 2. Input in Python (
input()
)
👉 Used to take data from user
💻 Example
name = input("Enter your name: ")
print(name)
⸻
📌 Important Point
👉
input() always takes data as string ❗⸻
📘 3. Type Conversion (Very Important 🔥)
👉 Convert input into required type
💻 Example
age = int(input("Enter age: "))
print(age + 5)
📤 OutputEnter age: 20
25
⸻
📘 4. Multiple Inputs
👉 You can take multiple values
💻 Example
a, b = input("Enter two numbers: ").split()
print(a)
print(b)
👉 With conversion 👇a, b = map(int, input("Enter two numbers: ").split())
print(a + b)
⸻
📘 5. Formatted Output (Clean Printing)
👉 Use f-strings (modern way 🔥)
name = "Mani"
age = 22
print(f"My name is {name} and I am {age} years old")
⸻
🌐 Try it Online
👉 https://www.mycompiler.io/online-python-compiler
⸻
⚡ Pro Tips
✔
input() = always string ✔ Use int(), float() for conversion ✔ Use f-string for clean output ✔ Avoid mixing string + int without conversion ❌⸻
🎯 Real Use Cases
👤 Login Forms 📊 Taking marks input 🎮 Games & quizzes 🧾 User registration systems
⸻
🔥 Practice Task
👉 Take 2 numbers from user 👉 Print their sum
⸻
🔁 Share with friends who want to learn coding 🚀
📢 Join our channel for daily content 👇🔥
👉 https://t.me/futurestack45
myCompiler
Online Python Compiler - myCompiler
Online Python Compiler - Edit, Compile and Run your Python code online with myCompiler IDE. Simple and easy to use IDE to edit, run and test your Python code.
❤2
FutureStack ☁️⚡
🚀 DAY 3 – Input & Output (Detailed) ⌨️ Input → Taking data from user 📤 Output → Displaying result on screen ⸻ 📘 1. Output in Python ( print() ) 👉 Used to display text or values 💻 Example print("Hello World") print(10) 📤 Output Hello World 10 ⸻ 📘 2.…
You can ask your doubts related to this content and also post your practice task answers in below discussion group ✅
https://t.me/+xGXHXQ2ajkpkNjk9
https://t.me/+xGXHXQ2ajkpkNjk9
Telegram
FutureStack ☁️⚡ Discussion Group
You’ve been invited to join this group on Telegram.
❤1
FutureStack ☁️⚡ pinned «You can ask your doubts related to this content and also post your practice task answers in below discussion group ✅ https://t.me/+xGXHXQ2ajkpkNjk9»
🚀 DAY 4 – Operators in Python (Complete Guide)
⚙️ Operators are symbols used to perform actions on data
👉 Example:
⸻
📘 1. Arithmetic Operators (Math Operations)
👉 Used for calculations
Operator
Meaning
Example
+
Add
5 + 2 = 7
-
Subtract
5 - 2 = 3
*
Multiply
5 * 2 = 10
/
Divide
5 / 2 = 2.5
//
Floor Division
5 // 2 = 2
%
Remainder
5 % 2 = 1
**
Power
2 ** 3 = 8
💻 Example
⸻
📘 2. Assignment Operators (Store / Update Value)
👉 Used to assign values to variables
Operator
Example
Meaning
=
x = 5
Assign value
+=
x += 3
x = x + 3
-=
x -= 2
x = x - 2
*=
x *= 2
x = x * 2
💻 Example
⸻
📘 3. Comparison Operators (True / False)
👉 Used to compare values
Operator
Meaning
==
Equal
!=
Not equal
>
Greater
<
Less
>=
Greater or equal
<=
Less or equal
💻 Example
⸻
📘 4. Logical Operators (Combine Conditions)
👉 Used when checking multiple conditions
Operator
Meaning
and
Both True
or
Any one True
not
Reverse
💻 Example
⸻
📘 5. Identity Operators (Same Object or Not)
👉 Check if both variables refer to same memory
Operator
Meaning
is
Same object
is not
Not same
💻 Example
⸻
📘 6. Membership Operators (Check Inside)
👉 Check if value exists in list/string
Operator
Meaning
in
Present
not in
Not present
💻 Example
⸻
📘 7. Bitwise Operators (Advanced)
👉 Works on binary numbers (0 & 1)
Operator
Meaning
&
AND
|
OR
XOR
💻 Example
⸻
🌐 Try it Online
👉 https://www.mycompiler.io/online-python-compiler
⸻
⚡ Important Tips
✔ Use
⸻
🎯 Real-Life Use
📊 Calculations 🔐 Login systems 🎯 Conditions (next topic)
⸻
🔥 Practice Tasks
👉 Take 2 numbers 👉 Perform all operations 👉 Check which is greater
⸻
🔁 Share with friends who want to learn coding 🚀
📢 Join our channel 👇🔥
👉 https://t.me/futurestack45
⚙️ Operators are symbols used to perform actions on data
👉 Example:
+ adds numbers 👉 Just like calculator 🧮⸻
📘 1. Arithmetic Operators (Math Operations)
👉 Used for calculations
Operator
Meaning
Example
+
Add
5 + 2 = 7
-
Subtract
5 - 2 = 3
*
Multiply
5 * 2 = 10
/
Divide
5 / 2 = 2.5
//
Floor Division
5 // 2 = 2
%
Remainder
5 % 2 = 1
**
Power
2 ** 3 = 8
💻 Example
a = 10
b = 3
print(a + b) # 13
print(a - b) # 7
print(a * b) # 30
print(a / b) # 3.33
print(a // b) # 3
print(a % b) # 1
print(a ** b) # 1000
⸻
📘 2. Assignment Operators (Store / Update Value)
👉 Used to assign values to variables
Operator
Example
Meaning
=
x = 5
Assign value
+=
x += 3
x = x + 3
-=
x -= 2
x = x - 2
*=
x *= 2
x = x * 2
💻 Example
x = 5
x += 3 # 8
x *= 2 # 16
print(x)
⸻
📘 3. Comparison Operators (True / False)
👉 Used to compare values
Operator
Meaning
==
Equal
!=
Not equal
>
Greater
<
Less
>=
Greater or equal
<=
Less or equal
💻 Example
a = 5
b = 10
print(a > b) # False
print(a < b) # True
print(a == b) # False
⸻
📘 4. Logical Operators (Combine Conditions)
👉 Used when checking multiple conditions
Operator
Meaning
and
Both True
or
Any one True
not
Reverse
💻 Example
x = True
y = False
print(x and y) # False
print(x or y) # True
print(not x) # False
⸻
📘 5. Identity Operators (Same Object or Not)
👉 Check if both variables refer to same memory
Operator
Meaning
is
Same object
is not
Not same
💻 Example
a = [1,2]
b = [1,2]
print(a is b) # False
👉 Even values same, memory is different⸻
📘 6. Membership Operators (Check Inside)
👉 Check if value exists in list/string
Operator
Meaning
in
Present
not in
Not present
💻 Example
x = [1,2,3]
print(2 in x) # True
print(5 not in x) # True
⸻
📘 7. Bitwise Operators (Advanced)
👉 Works on binary numbers (0 & 1)
Operator
Meaning
&
AND
|
OR
XOR
💻 Example
print(5 & 3) # 1
👉 Not needed for beginners now 👍⸻
🌐 Try it Online
👉 https://www.mycompiler.io/online-python-compiler
⸻
⚡ Important Tips
✔ Use
== for comparison (not = ❌) ✔ % helps to check even/odd ✔ // removes decimal ✔ Start with basic operators first⸻
🎯 Real-Life Use
📊 Calculations 🔐 Login systems 🎯 Conditions (next topic)
⸻
🔥 Practice Tasks
👉 Take 2 numbers 👉 Perform all operations 👉 Check which is greater
⸻
🔁 Share with friends who want to learn coding 🚀
📢 Join our channel 👇🔥
👉 https://t.me/futurestack45
myCompiler
Online Python Compiler - myCompiler
Online Python Compiler - Edit, Compile and Run your Python code online with myCompiler IDE. Simple and easy to use IDE to edit, run and test your Python code.
🔥 DAY 5 – Conditional Statements (if, else, elif) 🔥
Today we learn how Python makes decisions 🧠
👉 Simply: Conditions = “If this happens → do this”
⸻
✨ 1. if Statement (Basic decision)
If condition is TRUE → code runs ✅
⸻
✨ 2. if-else (Two choices)
If TRUE → first block
If FALSE → else block
⸻
✨ 3. if-elif-else (Multiple conditions)
Checks conditions one by one
⸻
✨ 4. Nested if (if inside if)
Condition inside another condition
⸻
✨ 5. Short Hand if (One line)
⸻
✨ 6. Short Hand if-else (Ternary)
⸻
💻 Practice here:
https://www.mycompiler.io/online-python-compiler
⸻
🚀 Follow for more: https://t.me/futurestack45
🔥 Learn Daily | Grow Daily | Become Developer
Today we learn how Python makes decisions 🧠
👉 Simply: Conditions = “If this happens → do this”
⸻
✨ 1. if Statement (Basic decision)
x = 10
if x > 5:
print("x is greater than 5")
👉 Meaning:If condition is TRUE → code runs ✅
⸻
✨ 2. if-else (Two choices)
x = 3
if x > 5:
print("Greater")
else:
print("Smaller")
👉 Meaning:If TRUE → first block
If FALSE → else block
⸻
✨ 3. if-elif-else (Multiple conditions)
x = 0
if x > 0:
print("Positive")
elif x == 0:
print("Zero")
else:
print("Negative")
👉 Meaning:Checks conditions one by one
⸻
✨ 4. Nested if (if inside if)
x = 10
if x > 5:
if x < 20:
print("Between 5 and 20")
👉 Meaning:Condition inside another condition
⸻
✨ 5. Short Hand if (One line)
x = 10
if x > 5: print("Greater")
⸻
✨ 6. Short Hand if-else (Ternary)
x = 10
print("Big") if x > 5 else print("Small")
⸻
💻 Practice here:
https://www.mycompiler.io/online-python-compiler
⸻
🚀 Follow for more: https://t.me/futurestack45
🔥 Learn Daily | Grow Daily | Become Developer
myCompiler
Online Python Compiler - myCompiler
Online Python Compiler - Edit, Compile and Run your Python code online with myCompiler IDE. Simple and easy to use IDE to edit, run and test your Python code.
FutureStack ☁️⚡ pinned «Starting Python From basics to learn it in 3 weeks ✅ Plan ✅ 🟢 UNIT 1 – BASICS (Foundation) 👉 Day 1 – What is Python + Features 👉 Day 2 – Variables & Data Types 👉 Day 3 – Input & Output 👉 Day 4 – Operators ⸻ 🟡 UNIT 2 – CONTROL FLOW (Logic Building) …»
📘 Day 6 – Nested If
👉 Definition: Nested If means using an
⸻
💻 Code Example 1 (Copy this into Telegram)
⸻
💻 Code Example 2
⸻
💻 Code Example 3
⸻
🧠 Key Points
✔ Used for multiple condition checking ✔ Helps in step-by-step decisions ✔ Too many nested ifs → makes code complex ❌
⸻
🎯 Practice
⸻
🔥 Better Alternative (Avoid Deep Nesting)
👉 Definition: Nested If means using an
if statement inside another if statement to check multiple conditions step by step.⸻
💻 Code Example 1 (Copy this into Telegram)
age = 20
has_id = True
if age >= 18:
if has_id:
print("Allowed to enter")
else:
print("ID required")
else:
print("Underage")
👉 Meaning: If age ≥ 18 → then check ID If both TRUE → Allowed ✅⸻
💻 Code Example 2
num = 10
if num > 0:
if num % 2 == 0:
print("Positive Even")
else:
print("Positive Odd")
else:
print("Negative number")
👉 Meaning: First check Positive → then Even/Odd⸻
💻 Code Example 3
marks = 75
if marks >= 50:
if marks >= 75:
print("Distinction")
else:
print("Pass")
else:
print("Fail")
👉 Meaning: Pass → then check Distinction⸻
🧠 Key Points
✔ Used for multiple condition checking ✔ Helps in step-by-step decisions ✔ Too many nested ifs → makes code complex ❌
⸻
🎯 Practice
# 1. Check if number is positive AND divisible by 5
# 2. Check if age > 18 AND has license
# 3. Simple login system using nested if
⸻
🔥 Better Alternative (Avoid Deep Nesting)
age = 20
has_id = True
if age >= 18 and has_id:
print("Allowed")
else:
print("Not allowed")
💻 Practice here:
https://www.mycompiler.io/online-python-compiler
⸻
🚀 Follow for more: https://t.me/futurestack45
🔥 Learn Daily | Grow Daily | Become Developer
https://www.mycompiler.io/online-python-compiler
⸻
🚀 Follow for more: https://t.me/futurestack45
🔥 Learn Daily | Grow Daily | Become Developer
myCompiler
Online Python Compiler - myCompiler
Online Python Compiler - Edit, Compile and Run your Python code online with myCompiler IDE. Simple and easy to use IDE to edit, run and test your Python code.
📘 Day 7 – For Loop
👉 Definition: A
👉 It is mainly used to iterate over a sequence (like list, string, range).
⸻
💻 Code Example 1 (Basic Loop)
⸻
💻 Code Example 2 (Start & End)
⸻
💻 Code Example 3 (Step Value)
⸻
💻 Code Example 4 (Loop with List)
⸻
💻 Code Example 5 (Loop with String)
⸻
💻 Code Example 6 (With Condition)
⸻
🧠 Key Points
✔ Used for repeating tasks ✔
⸻
🎯 Practice
⸻
🔥 Pro Tip
👉 Use loops to: ✔ Automate tasks ✔ Work with data ✔ Build logic
📢 Follow for more: https://t.me/futurestack45
👉 Definition: A
for loop is used to repeat a block of code multiple times.👉 It is mainly used to iterate over a sequence (like list, string, range).
⸻
💻 Code Example 1 (Basic Loop)
for i in range(5):
print(i)
👉 Meaning: Prints numbers from 0 to 4⸻
💻 Code Example 2 (Start & End)
for i in range(1, 6):
print(i)
👉 Meaning: Prints numbers from 1 to 5⸻
💻 Code Example 3 (Step Value)
for i in range(1, 10, 2):
print(i)
👉 Meaning: Prints: 1, 3, 5, 7, 9⸻
💻 Code Example 4 (Loop with List)
fruits = ["apple", "banana", "mango"]
for fruit in fruits:
print(fruit)
👉 Meaning: Prints each item from the list⸻
💻 Code Example 5 (Loop with String)
for char in "Python":
print(char)
👉 Meaning: Prints each character⸻
💻 Code Example 6 (With Condition)
for i in range(1, 6):
if i == 3:
print("Found 3")
else:
print(i)
👉 Meaning: Checks condition inside loop⸻
🧠 Key Points
✔ Used for repeating tasks ✔
range() is commonly used ✔ Can loop through list, string, etc⸻
🎯 Practice
# 1. Print numbers from 1 to 10
# 2. Print even numbers from 1 to 20
# 3. Print each character in your name
# 4. Print table of 5
⸻
🔥 Pro Tip
👉 Use loops to: ✔ Automate tasks ✔ Work with data ✔ Build logic
📢 Follow for more: https://t.me/futurestack45
Telegram
FutureStack ☁️⚡
AI | Cloud | Coding | Tech Trends
Learn - Build - Grow ❤️
Job Updates: https://t.me/thinkcareers
Learn - Build - Grow ❤️
Job Updates: https://t.me/thinkcareers
📘 Day 8 – While Loop
👉 Definition: A
👉 It runs until the condition becomes FALSE.
⸻
💻 Code Example 1 (Basic While Loop)
⸻
💻 Code Example 2 (Condition Based Loop)
⸻
💻 Code Example 3 (Infinite Loop ⚠️)
⸻
💻 Code Example 4 (Using Break)
⸻
💻 Code Example 5 (Using Continue)
⸻
🧠 Key Points
✔ Runs based on condition ✔ Can become infinite if condition never becomes FALSE ❌ ✔ Always update variable inside loop
⸻
🎯 Practice
⸻
🔥 Pro Tip
👉 Use
📢 Follow for more: https://t.me/futurestack45
👉 Definition: A
while loop is used to repeat a block of code as long as a condition is TRUE.👉 It runs until the condition becomes FALSE.
⸻
💻 Code Example 1 (Basic While Loop)
i = 1
while i <= 5:
print(i)
i += 1
👉 Meaning: Prints numbers from 1 to 5⸻
💻 Code Example 2 (Condition Based Loop)
num = 1
while num < 10:
print(num)
num += 2
👉 Meaning: Prints: 1, 3, 5, 7, 9⸻
💻 Code Example 3 (Infinite Loop ⚠️)
while True:
print("Hello")
👉 Meaning: Runs forever (until manually stopped)⸻
💻 Code Example 4 (Using Break)
i = 1
while i <= 10:
if i == 5:
break
print(i)
i += 1
👉 Meaning: Stops loop when i = 5⸻
💻 Code Example 5 (Using Continue)
i = 0
while i < 5:
i += 1
if i == 3:
continue
print(i)
👉 Meaning: Skips number 3⸻
🧠 Key Points
✔ Runs based on condition ✔ Can become infinite if condition never becomes FALSE ❌ ✔ Always update variable inside loop
⸻
🎯 Practice
# 1. Print numbers from 1 to 10 using while
# 2. Print even numbers from 1 to 20
# 3. Print sum of numbers from 1 to 10
# 4. Reverse a number using while
⸻
🔥 Pro Tip
👉 Use
while when: ✔ You don’t know how many times loop will run ✔ Condition-based repetition is needed📢 Follow for more: https://t.me/futurestack45
Telegram
FutureStack ☁️⚡
AI | Cloud | Coding | Tech Trends
Learn - Build - Grow ❤️
Job Updates: https://t.me/thinkcareers
Learn - Build - Grow ❤️
Job Updates: https://t.me/thinkcareers
📘 Day 9 – Break & Continue
👉 Definition:
break → completely stops the loop
continue → skips current iteration and moves to next
⸻
💻 Code Example 1 (Break)
⸻
💻 Code Example 2 (Continue)
⸻
💻 Code Example 3 (While + Break)
⸻
💻 Code Example 4 (While + Continue)
⸻
🧠 Simple Understanding
👉 break = Stop loop immediately 🛑 👉 continue = Skip current step ⏭️
⸻
🎯 Practice
⸻
🔥 Pro Tip
👉 Use: ✔
👉 Definition:
break and continue are used to control loopsbreak → completely stops the loop
continue → skips current iteration and moves to next
⸻
💻 Code Example 1 (Break)
for i in range(1, 6):
if i == 3:
break
print(i)
👉 Meaning: Loop stops when i = 3 Output: 1, 2⸻
💻 Code Example 2 (Continue)
for i in range(1, 6):
if i == 3:
continue
print(i)
👉 Meaning: Skips 3 Output: 1, 2, 4, 5⸻
💻 Code Example 3 (While + Break)
i = 1
while i <= 5:
if i == 4:
break
print(i)
i += 1
👉 Meaning: Stops loop when i = 4⸻
💻 Code Example 4 (While + Continue)
i = 0
while i < 5:
i += 1
if i == 2:
continue
print(i)
👉 Meaning: Skips 2⸻
🧠 Simple Understanding
👉 break = Stop loop immediately 🛑 👉 continue = Skip current step ⏭️
⸻
🎯 Practice
# 1. Print numbers 1–10 but stop at 6
# 2. Print numbers 1–10 but skip multiples of 3
# 3. Find first number divisible by 7 (use break)
⸻
🔥 Pro Tip
👉 Use: ✔
break → when condition is achieved ✔ continue → when you want to skip a value❤1
DAY 10 – LISTS (Python Basics)
⸻
📌 What is a List? 👉 A list is a collection of items stored in a single variable 👉 It is ordered, changeable, and allows duplicates
⸻
📌 Example (Create List)
⸻
📌 Access List Items
⸻
📌 Change List Item
⸻
📌 Add Item (append)
⸻
📌 Remove Item
⸻
📌 List Length
⸻
📌 Loop Through List
⸻
🎯 🔥 Important Example (All Data Types in One List)
👉 Python list can store multiple data types together ✅
⸻
💡 Summary ✔ Store multiple values in one variable ✔ Can store different data types ✔ Very useful in real-world coding
⸻
📢 Follow 👉 https://t.me/futurestack45 🔁 Share with friends to grow together 🚀
⸻
📌 What is a List? 👉 A list is a collection of items stored in a single variable 👉 It is ordered, changeable, and allows duplicates
⸻
📌 Example (Create List)
fruits = ["apple", "banana", "mango"]
print(fruits)
👉 Output:['apple', 'banana', 'mango']
⸻
📌 Access List Items
fruits = ["apple", "banana", "mango"]
print(fruits[0])
print(fruits[1])
👉 Output:apple
banana
⸻
📌 Change List Item
fruits = ["apple", "banana", "mango"]
fruits[1] = "orange"
print(fruits)
👉 Output:['apple', 'orange', 'mango']
⸻
📌 Add Item (append)
fruits = ["apple", "banana"]
fruits.append("mango")
print(fruits)
👉 Output:['apple', 'banana', 'mango']
⸻
📌 Remove Item
fruits = ["apple", "banana", "mango"]
fruits.remove("banana")
print(fruits)
👉 Output:['apple', 'mango']
⸻
📌 List Length
fruits = ["apple", "banana", "mango"]
print(len(fruits))
👉 Output:3
⸻
📌 Loop Through List
fruits = ["apple", "banana", "mango"]
for item in fruits:
print(item)
👉 Output:apple
banana
mango
⸻
🎯 🔥 Important Example (All Data Types in One List)
data = ["apple", 10, 3.5, True]
print(data)
👉 Output:['apple', 10, 3.5, True]
👉 Meaning: ✔ String → “apple” ✔ Integer → 10 ✔ Float → 3.5 ✔ Boolean → True👉 Python list can store multiple data types together ✅
⸻
💡 Summary ✔ Store multiple values in one variable ✔ Can store different data types ✔ Very useful in real-world coding
⸻
📢 Follow 👉 https://t.me/futurestack45 🔁 Share with friends to grow together 🚀
Telegram
FutureStack ☁️⚡
AI | Cloud | Coding | Tech Trends
Learn - Build - Grow ❤️
Job Updates: https://t.me/thinkcareers
Learn - Build - Grow ❤️
Job Updates: https://t.me/thinkcareers
DAY 11 – TUPLES (Python Basics)
⸻
📌 What is a Tuple? 👉 A tuple is a collection of items stored in a single variable 👉 It is ordered, NOT changeable (immutable), allows duplicates
⸻
📌 Example (Create Tuple)
⸻
📌 Access Tuple Items
⸻
📌 Tuple is Immutable ❌
⸻
📌 Tuple Length
⸻
📌 Loop Through Tuple
⸻
📌 Single Item Tuple (Important ⚠)
⸻
🎯 🔥 Example (All Data Types in Tuple)
⸻
💡 Summary ✔ Same as list but cannot change values ✔ Faster than list ✔ Used when data should not change
⸻
📢 Follow 👉 https://t.me/futurestack45
🔁 Share with friends to grow together 🚀
⸻
📌 What is a Tuple? 👉 A tuple is a collection of items stored in a single variable 👉 It is ordered, NOT changeable (immutable), allows duplicates
⸻
📌 Example (Create Tuple)
fruits = ("apple", "banana", "mango")
print(fruits)
👉 Output:('apple', 'banana', 'mango')
⸻
📌 Access Tuple Items
fruits = ("apple", "banana", "mango")
print(fruits[0])
print(fruits[1])
👉 Output:apple
banana
👉 Index starts from 0⸻
📌 Tuple is Immutable ❌
fruits = ("apple", "banana", "mango")
fruits[1] = "orange"
👉 Output:TypeError: 'tuple' object does not support item assignment
👉 Meaning: ❌ Cannot change values in tuple⸻
📌 Tuple Length
fruits = ("apple", "banana", "mango")
print(len(fruits))
👉 Output:3
⸻
📌 Loop Through Tuple
fruits = ("apple", "banana", "mango")
for item in fruits:
print(item)
👉 Output:apple
banana
mango
⸻
📌 Single Item Tuple (Important ⚠)
data = ("apple",)
print(type(data))
👉 Output:<class 'tuple'>
👉 Without comma → it is NOT tuple ❌⸻
🎯 🔥 Example (All Data Types in Tuple)
data = ("apple", 10, 3.5, True)
print(data)
👉 Output:('apple', 10, 3.5, True)
👉 Meaning: ✔ String → “apple” ✔ Integer → 10 ✔ Float → 3.5 ✔ Boolean → True⸻
💡 Summary ✔ Same as list but cannot change values ✔ Faster than list ✔ Used when data should not change
⸻
📢 Follow 👉 https://t.me/futurestack45
🔁 Share with friends to grow together 🚀
Telegram
FutureStack ☁️⚡
AI | Cloud | Coding | Tech Trends
Learn - Build - Grow ❤️
Job Updates: https://t.me/thinkcareers
Learn - Build - Grow ❤️
Job Updates: https://t.me/thinkcareers