AI Forever
3 subscribers
1 link
🌱 Beginner β†’ οΏ½ Intermediate β†’ πŸš€ Advanced β†’ πŸ† Mastery
Download Telegram
🐍 Day 1: Kickstart Your Python Journey!

Objective: Set up Python, write your first program, and grasp core basics.

---

πŸ“Œ What is Python?
- A versatile, beginner-friendly language used for:
_Web dev β€’ Data science β€’ AI/ML β€’ Automation β€’ and more!_
- Known for clean syntax and readability.

---

πŸ›  Setup Guide
1. Install Python:
- Download from [python.org](https://www.python.org/downloads/)
- βœ”οΈ Check "Add Python to PATH" during installation.
2. Choose an Editor:
- VS Code (recommended) or PyCharm.
3. Verify Installation:

bash  
python --version
# Should display e.g., "Python 3.11.4"



---

✨ Your First Python Program
1. Create day1.py and add:

python  
print("Hello, World!")


2. Run it in the terminal:

bash  
python day1.py


Output:

  
Hello, World!



---

πŸ“š Key Concepts
- Comments: Use # to explain code (ignored by Python).

python  
# This prints a message
print("Comments are useful!")


- Printing: Display output with print().

python  
print("Python is fun! πŸš€")



---

πŸ” Try the Python Shell
Type python in your terminal to start experimenting:
python  
>>> print("I'm coding live!")
>>> 5 * 3
>>> 100 / 4



---

πŸ’» Practice Tasks
1. Print your name:

python  
print("My name is [Your Name]")


2. Math operations:

python  
print(8 + 4)
print(15 * 2)



---

### 🎯 Day 1 Goals
- [x] Understand Python’s purpose.
- [x] Set up your coding environment.
- [x] Write/Run your first script.
- [x] Master print() and comments.

Let’s crush Day 1! πŸ’ͺ

πŸ”— *Share your code screenshots in the comments!*
#PythonBasics #LearnToCode #CodingJourney #Python101
🌟 Day 4: Conditional Statements in Python 🌟

🎯 Objective:
Learn how to use if, elif, and else statements to make decisions in your code.

---

πŸ“š What Are Conditional Statements?
They allow your program to make decisions based on certain conditions.

age = 18
if age >= 18:
print("You are an adult.")
else:
print("You are a minor.")


---

βœ… `if` Statement
Checks a condition. If True, it runs the code inside.

num = 10
if num > 5:
print("The number is greater than 5.")


🧭 `else` Statement
Runs when the if condition is False.

num = 3
if num > 5:
print("The number is greater than 5.")
else:
print("The number is not greater than 5.")


πŸ”€ `elif` Statement
Use it to check multiple conditions.

num = 0
if num > 0:
print("The number is positive.")
elif num == 0:
print("The number is zero.")
else:
print("The number is negative.")


⚠️ Important: Python uses indentation (4 spaces) to define blocks of code. Be consistent!

---

πŸ§ͺ Practice Exercises:

1️⃣ Check Even or Odd
num = int(input("Enter a number: "))
if num % 2 == 0:
print("The number is even.")
else:
print("The number is odd.")


2️⃣ Grade Calculator
score = int(input("Enter your score: "))
if score >= 90:
print("Grade: A")
elif score >= 80:
print("Grade: B")
elif score >= 70:
print("Grade: C")
elif score >= 60:
print("Grade: D")
else:
print("Grade: F")


3️⃣ Positive, Negative or Zero
num = int(input("Enter a number: "))
if num > 0:
print("The number is positive.")
elif num == 0:
print("The number is zero.")
else:
print("The number is negative.")


---

🏁 Goal for Today:
βœ”οΈ Understand how if, elif, and else work
βœ”οΈ Write decision-based programs
βœ”οΈ Master proper indentation

#ConditionalStatements #IfElse #PythonBasics #PythonTutorial #CodingLessons #TechEducation #Day4