Python 10-Day Learning Series
Welcome to this 10-day Python learning journey! Each day, you'll learn new concepts with code examples, explanations, and practical exercises to progress from a beginner to an intermediate level.
๐ Day 1: Introduction to Python and Installation
๐ง What is Python?
Python is one of the world's most popular programming languages, known for its simple syntax, powerful capabilities, and wide community support. It is widely used for AI, data science, web development, and automation.
๐ก Why Learn Python?
✅ Easy to read and learn
✅ Large library support
✅ Cross-platform compatibility
✅ Suitable for small and large projects
⚙️ Installing Python
- Go to Python’s official website
- Download the appropriate version for your OS
- During installation, check the box "Add Python to PATH"
๐ Setting Up an IDE
Popular Python IDEs:
- VS Code ๐น
- PyCharm ๐ข
- Jupyter Notebook ๐
๐ First Python Program:
print("Hello, World!")
๐ Task: Install Python and run your first program! ✅
๐ Day 2: Python Basics - Variables, Data Types, and Operators
๐น Variables & Data Types
In Python, variables store data:
name = "Alice" # String
age = 25 # Integer
height = 5.7 # Float
is_student = True # Boolean
๐งฎ Operators in Python
๐ Arithmetic Operators: +
, -
, *
, /
, //
, %
, **
๐ Comparison Operators: ==
, !=
, <
, >
, <=
, >=
๐ Logical Operators: and
, or
, not
๐ Example:
x = 10
y = 3
print(x + y) # 13
print(x ** y) # 1000 (10^3)
๐ Task: Create a simple calculator using variables and operators!
๐ Day 3: Control Flow - Conditional Statements and Loops
๐ข Conditional Statements (if-elif-else
)
age = 18
if age >= 18:
print("You can vote!")
else:
print("You cannot vote yet.")
๐ Loops (for
, while
)
๐น For Loop - Iterate over a list:
fruits = ["apple", "banana", "cherry"]
for fruit in fruits:
print(fruit)
๐น While Loop - Repeat while a condition is true:
count = 0
while count < 5:
print("Count is:", count)
count += 1
๐ Task: Write a loop that calculates the sum of numbers from 1 to 10!
๐ Day 4: Functions and Modules
๐น Defining Functions
def greet(name):
return f"Hello, {name}!"
print(greet("Alice"))
๐ฆ Importing Modules
import math
print(math.sqrt(16)) # 4.0
๐ Task: Create a function that calculates the retirement age based on user input!
๐ Day 5: Lists, Tuples, and Dictionaries
๐ Lists – Mutable data collections:
fruits = ["apple", "banana", "cherry"]
fruits.append("orange")
print(fruits)
๐น Tuples – Immutable collections:
numbers = (1, 2, 3, 4)
print(numbers[0]) # 1
๐ Dictionaries – Key-value pairs:
person = {"name": "Alice", "age": 25}
print(person["name"]) # Alice
๐ Task: Create a dictionary storing a student's grades!
๐ Day 6: Working with Files and Exceptions
๐ File Handling (open()
, read()
, write()
)
with open("example.txt", "w") as file:
file.write("Hello, Python!")
⚠️ Exception Handling (try-except
)
try:
result = 10 / 0
except ZeroDivisionError:
print("Cannot divide by zero!")
๐ Task: Write a Python program that saves user input to a file!
๐ Day 7: Object-Oriented Programming (OOP) in Python
๐น Classes and Objects
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
person1 = Person("Alice", 25)
print(person1.name) # Alice
๐ Task: Create a "Car" class and generate car objects!
๐ Day 8: Working with Libraries and APIs
๐ Using the Requests Module for APIs
import requests
response = requests.get("https://api.github.com")
print(response.json())
๐ Data Analysis with Pandas
import pandas as pd
data = {"Name": ["Alice", "Bob"], "Age": [25, 30]}
df = pd.DataFrame(data)
print(df)
๐ Task: Fetch and display weather data from an API!
๐ Day 9: Introduction to Databases with Python
๐ Using SQLite with Python
import sqlite3
conn = sqlite3.connect("my_database.db")
cursor = conn.cursor()
cursor.execute("CREATE TABLE users (id INTEGER, name TEXT)")
conn.commit()
๐ Task: Create a database storing user information!
๐ Day 10: Final Project - Python Application
Choose Your Project:
✅ To-Do List Application
✅ Weather Data Fetcher
✅ Web Scraper
๐ก Select your project and start coding!
๐ For registration and inquiries: Contact us on WhatsApp: +1 (544) 144-0605
๐ฐ Course Fee: $200 for the full 10-day Python learning program
This 10-day series is perfect for learning Python step by step! ๐ If you need more details or examples, let me know!
Post a Comment "Python 10-Day Learning Series"