

100Days of learning - how to code using Python
π± 1. Python Basics (Days 1β10)
π¦ Core Concepts
- What is Python? Highβlevel, interpreted, beginnerβfriendly.
- Running Python:
- Using IDEs (VS Code, PyCharm)
- Using terminal (python file.py)
- Comments:
- Single-line: # comment
- Multi-line: """ comment """
π¦ Data Types
int -> ex: 10 -> whole numbers
float -> 3.14 -> decimals
str -> "hello" -> text
bool -> True/False -> logical values
π¦ Variables
- Dynamic typing
- python
- x = 10 name = "Anu"
==============================
π’ 2. Operators & Expressions (Days 10β15)
π¦ Arithmetic
+ - * / // % **
π¦ Comparison
== != > < >= <=
π¦ Logical
and or not
π¦ Assignment
= += -= *=
==============================
π 3. Control Flow (Days 15β25)
π¦ If/Else
Ex: in python
if age >= 18: print("Adult") else: print("Minor")
π¦ Loops
1. For loop
Ex: in python
for i in range(5): print(i)
2. While loop
in python
while count < 5: count += 1
π¦ Loop Controls
- break β exit loop
- continue β skip iteration
- pass β placeholder
==============================
π¦ 4. Data Structures (Days 25β40)
π¦ Lists
- Ordered, mutable
Ex: fruits = ["apple", "banana"]
π¦ Tuples
- Ordered, immutable
Ex: coords = (10, 20)
π¦ Sets
- Unordered, unique values
Ex: nums = {1, 2, 3}
π¦ Dictionaries
- Keyβvalue pairs
Ex:
student = {"name": "Anu", "age": 25}
==============================
π§© 5. Functions (Days 40β50)
π¦ Defining Functions
Ex:
def greet(name): return "Hello " + name
π¦ Parameters vs Arguments
- Parameter β variable in function definition
- Argument β value passed when calling
π¦ Return vs Print
- return gives value back
- print only displays
==============================
π§± 6. Modules & Packages (Days 50β60)
π¦ Importing
Ex:
import math from random import randint
π¦ Creating your own module
- Save a .py file
- Import it in another file
==============================
ποΈ 7. File Handling (Days 60β70)
π¦ Reading
Ex: in python
with open("data.txt", "r") as f: content = f.read()
π¦ Writing
Ex: in python
with open("data.txt", "w") as f: f.write("Hello")
==============================
π 8. Object-Oriented Programming (Days 70β85)
π¦ Class & Object
Ex: in python
class Person: def __init__(self, name): self.name = name p = Person("Anu")
π¦ Concepts
- Encapsulation
- Inheritance
- Polymorphism
- Abstraction
==============================
π 9. Intermediate Python (Days 85β95)
π¦ List Comprehensions
Ex: in python
squares = [x*x for x in range(10)]
π¦ Lambda Functions
Ex: python
add = lambda a, b: a + b
π¦ Map, Filter, Reduce
Ex: in python
list(map(lambda x: x*2, nums))
π¦ Error Handling
Ex: in python
try: x = 10/0 except ZeroDivisionError: print("Error")
==============================
π 10. Projects & Automation (Days 95β100)
π¦ Mini Projects that you can try to Build
- Calculator
- Password generator
- Toβdo app
- Web scraper
- API-based app
- Simple game (Snake, Pong)
π¦ Automation Ideas
- Rename files
- Send emails
- Process CSV/Excel
- Scrape websites
Thanks,
Jyoti.
