From Basics to Advanced - Learn Python Step by Step
This repository documents my Python learning journey through the CodeWithHarry Python course. It includes structured notes, hands-on examples, and practice exercises covering core concepts from fundamentals to advanced topics. The content is organized for clarity and practical understanding.
Perfect for:
- π― Learning Python from absolute scratch
- π Building strong programming fundamentals
- π‘ Understanding Python data structures
- π Preparing for data science and automation
- π Quick reference and revision
| Module | Topic | Content | Status |
|---|---|---|---|
| 0001 | Introduction to Python | Setup, First Program, Basics | β Completed |
| 0002 | Variables & Data Types | Variables, Types, Casting | β Completed |
| 0003 | Strings | String Methods, Formatting | β Completed |
| Module | Topic | Content | Status |
|---|---|---|---|
| 0004 | Lists & Tuples | Lists, Tuples, Methods | β Completed |
| 0005 | Dictionary & Sets | Dict, Sets, Operations | β Completed |
| Module | Topic | Content | Status |
|---|---|---|---|
| 0006 | Conditional Expressions | if-else, elif, Ternary | β Completed |
| 0007 | Loops | for, while, break, continue | β Completed |
| Module | Topic | Content | Status |
|---|---|---|---|
| 0008 | Functions & Recursions | Type of argument, local and global variables, Recursion | β Completed |
| 0008 | Project-1 | SNAKE, WATER, GUN GAME | β Completed |
| 0009 | File I/O | r β open for reading, w - open for writing, a - open for appending, + - open for updating, βrbβ will open for read in binary mode, βrtβ will open for read in text mode. | β Completed |
| 0010 | Object-Oriented Programming | Classes & Objects, self, constructor | β Completed |
| 0011 | Inheritance | Single, Multiple, Multilevel, Hierarichical, Hybride | β Completed |
| 0011 | Project-2 | Generates a random | β Completed |
β
Python 3.8 or higher
β
Code Editor (VS Code, PyCharm, or any IDE)
β
Basic computer knowledge
β
Enthusiasm to learn!# Clone the repository
git clone https://github.com/ranichandnirani/Complete-Python.git
# Navigate to the folder
cd Complete-Python
# Choose any module (example: 0002 Variables & Datatypes)
cd "0002 Variables & Datatypes"
# Run Python file
python filename.pyWindows:
# Download from python.org
# Or use Microsoft StoreMac:
brew install python3Linux:
sudo apt-get install python3Verify Installation:
python --version
# or
python3 --versionπ¦ Complete Python
βββ π 0001 Intro-python
β βββ Introduction & Setup
βββ π 0002 Variables & Datatypes
β βββ Variables, Data Types, Type Conversion
βββ π 0003 Strings
β βββ String Operations & Methods
βββ π 0004 Lists & Tuples
β βββ Lists, Tuples, List Comprehension
βββ π 0005 Dictionary & Sets
β βββ Dictionaries, Sets, Operations
βββ π 0006 Conditional Expression
β βββ if-else, elif, Nested conditions
βββ π 0007 Loops
β βββ for, while, break, continue
βββ π 0008 Functions and Recursion
β βββ Type of arguments, local and global variable, Recursion
βββ π 0008 Project-1
β βββ SNAKE, WATER, GUN GAME
βββ π 0009 File Handling
β βββ File I/O, read and write, open and close, and append
βββ π 0010-0011 Object-Oriented-Programming
β βββ Classes and Objects, Inheritance, Encapsulation, Polymorphysom, Abstraction
βββ π 0011 Project-2 Random number Guessing
β βββ Using Random module
βββ π README.md (This file)
β¨ Python Basics
- Python Installation & Setup
- Variables & Data Types
- Type Conversion & Casting
- Input/Output Operations
- Comments & Documentation
π₯ Data Structures
- Strings (Methods, Slicing, Formatting)
- Lists (Creation, Methods, Slicing, Comprehension)
- Tuples (Immutable sequences)
- Dictionaries (Key-Value pairs, Methods)
- Sets (Unique elements, Set operations)
π Control Flow
- Conditional Statements (if, elif, else)
- Loops ()
- for loops
- while loops
- break statement
- continue statement
- Nested loops
- Loop with else
- Range function
π― Functions & Recursions
- Types of functions
- Types of arguments
- Local and Global variable
- Recursion
π What's Next
- More modules coming soon!
- Focus on mastering current concepts
- Practice with exercises
- Build small projects with learned concepts
graph LR
A[π± Start] --> B[π 0001-0002<br/>Basics]
B --> C[π 0003<br/>Strings]
C --> D[π 0004-0005<br/>Data Structures]
D --> E[π 0006<br/>Conditionals]
E --> F[π 0007<br/>Loops]
F --> G[π‘ 0008<br/>Functions & Recursion]
G --> H[π Foundation Complete!]
π Module 0001: Introduction to Python
Topics Covered:
- What is Python?
- Why learn Python?
- Python installation
- First Python program
- Python syntax basics
- Print function
- Comments
Key Learnings:
- Setting up Python environment
- Understanding Python philosophy
- Writing your first program
π¦ Module 0002: Variables & Data Types
Topics Covered:
- Variables & naming conventions
- Data types (int, float, str, bool)
- Type conversion
- Type casting
- Multiple assignment
- Constants
Key Learnings:
- Variable declaration
- Understanding Python data types
- Dynamic typing in Python
π Module 0003: Strings
Topics Covered:
- String creation
- String indexing & slicing
- String methods (upper, lower, strip, etc.)
- String formatting (f-strings, format())
- String concatenation
- Escape characters
Key Learnings:
- String manipulation techniques
- Formatting output
- Working with text data
π Module 0004: Lists & Tuples
Topics Covered:
- List creation & operations
- List methods (append, insert, remove, etc.)
- List slicing & indexing
- List comprehension
- Tuples (creation, immutability)
- Tuple packing & unpacking
Key Learnings:
- Working with ordered collections
- List vs Tuple differences
- Efficient list operations
ποΈ Module 0005: Dictionary & Sets
Topics Covered:
- Dictionary creation
- Accessing & modifying dictionaries
- Dictionary methods (keys, values, items)
- Dictionary comprehension
- Sets (creation, operations)
- Set methods (union, intersection, difference)
Key Learnings:
- Key-value pair data structures
- Unique element collections
- Dictionary and set operations
β Module 0006: Conditional Expressions
Topics Covered:
- if statement
- if-else statement
- elif (else if)
- Nested conditions
- Ternary operator
- Logical operators (and, or, not)
- Comparison operators
Key Learnings:
- Decision making in Python
- Complex conditional logic
- Short-circuit evaluation
π Module 0007: Loops
Topics to Cover:
- for loops
- while loops
- break statement
- continue statement
- pass statement
- Nested loops
- Loop with else clause
- Range function
- Iterating over sequences
Learning Goals:
- Understanding iteration
- Loop control flow
- Efficient looping techniques
π― Module 0008: Functions & Recursion
Topics to Cover:
- Types of functions
- Types of arguments
- Local and Global variable
- Recursion
Learning Goals:
- Understand why functions are used in Python
- Learn how to define and call functions
- Work with different types of arguments
- Understand the difference between local and global variables
- Learn how recursion works with a base case
- Solve simple problems using recursive functions
Contributions are welcome! Here's how you can help:
- π΄ Fork the repository
- πΏ Create a feature branch (
git checkout -b feature/NewTopic) - βοΈ Commit your changes (
git commit -m 'Add new topic') - π€ Push to the branch (
git push origin feature/NewTopic) - π Open a Pull Request
Contribution Ideas:
- π Fix bugs or typos
- β¨ Add more examples
- π Improve documentation
- π‘ Add practice exercises
- π― Add module explanations
- β 8 Modules Completed: Strong foundation built
- β Hands-on Examples: Practical code in every module
- β Well-Structured: Organized learning path
- β Progressive Learning: Step-by-step approach
- β Clean Code: Well-commented examples
- β Beginner Friendly: Start from absolute basics
- β 100% Python: Pure Python focus
- β More Coming: Continuous updates
π Modules Completed: 6
π» Topics Covered: 12+
π― Core Concepts: Basics, Strings, Data Structures, Conditionals
β±οΈ Time Investment: 12-15 hours
π Difficulty: Beginner
π Language: 100% Python
π Status: Foundation Complete
After completing these 6 modules, you will be able to:
β
Set up Python development environment
β
Understand Python syntax and basics
β
Work with all major data types (int, float, str, bool)
β
Manipulate strings effectively
β
Use lists, tuples, dictionaries, and sets
β
Write conditional logic (if-else, elif)
β
Build strong Python fundamentals
β
Ready to learn loops, functions, and advanced topics
If this repository helped you learn Python:
β Star this repository
π΄ Fork for your reference
π’ Share with fellow learners
π€ Contribute to improve it
Need help or have questions?
- π‘ Open an Issue
- π§ Email: chandnirani229@gmail.com
- π GitHub: @ranichandnirani
- π LinkedIn: @chandni-rani
- π Instagram: @the_chan_dni