Skip to content

ShashwatSingh-Stud/Python.Learn

Repository files navigation

🐍 Python.Learn

A Personal Python Learning Journey — From Zero to Confident

Python License: MIT GitHub


This repository documents my Python learning path — every concept, every exercise, every "aha!" moment, committed one file at a time.


📖 About

This is my personal collection of Python scripts created while learning the language from scratch. Each file represents a topic or exercise I worked through, covering everything from basic print() statements to data structures and file handling. The code is written as a learning log — you'll find experiments, commented-out attempts, and progressive improvements that reflect a real learning process.


🗺️ Learning Roadmap

  START
    │
    ▼
  ┌─────────────────────┐
  │  1. Basics & Syntax  │  ← morax.py, python.py, Questions.py
  └──────────┬──────────┘
             │
             ▼
  ┌─────────────────────┐
  │  2. Operators & I/O  │  ← ux.py, Yogurt.py, homework.py
  └──────────┬──────────┘
             │
             ▼
  ┌─────────────────────┐
  │  3. Conditionals     │  ← control.py, ifelse.py, question3.py
  └──────────┬──────────┘
             │
             ▼
  ┌─────────────────────┐
  │  4. Loops & Patterns │  ← loops.py
  └──────────┬──────────┘
             │
             ▼
  ┌─────────────────────┐
  │  5. Functions &      │
  │     String Methods   │  ← functions.py
  └──────────┬──────────┘
             │
             ▼
  ┌─────────────────────┐
  │  6. Data Structures  │  ← datastructures.py, Tuples.py
  └──────────┬──────────┘
             │
             ▼
  ┌─────────────────────┐
  │  7. File Handling    │  ← file_Handling.py
  └──────────┬──────────┘
             │
             ▼
        IN PROGRESS 🚀

📂 Repository Structure

Python.Learn/
│
├── 📄 README.md             # You are here
├── 📄 LICENSE                # MIT License
├── 📄 .gitignore             # Git ignore rules
│
│── 🟢 BASICS & SYNTAX
│   ├── morax.py              # Variables, data types, naming conventions
│   ├── python.py             # Input/output, type casting, boolean conversion
│   └── Questions.py          # Type conversion practice (int, float, str)
│
│── 🔵 OPERATORS & INPUT/OUTPUT
│   ├── ux.py                 # Arithmetic operators, Simple & Compound Interest
│   ├── Yogurt.py             # Comparison & logical operators (and, or, not)
│   ├── homework.py           # User input & f-string formatting exercises
│   ├── Homework2.py          # Arithmetic operations practice (+, -, *, /, %, //, **)
│   └── Assignment.py         # Math operations & basic conditionals
│
│── 🟡 CONDITIONALS (if / elif / else)
│   ├── control.py            # Even/odd check, positive/negative, string slicing
│   ├── ifelse.py             # 15+ exercises: leap year, vowel checker, age validation & more
│   └── question3.py          # Largest number, gender greeting, voter eligibility
│
│── 🟠 LOOPS (for / while)
│   └── loops.py              # Ranges, multiplication tables, sum of series,
│                              # prime numbers, Fibonacci, palindrome, Armstrong,
│                              # guessing game & more
│
│── 🔴 FUNCTIONS & STRING MANIPULATION
│   └── functions.py          # Palindrome function, recursion, string reversal,
│                              # vowel/consonant counter, character classification
│
│── 🟣 DATA STRUCTURES
│   ├── datastructures.py     # Lists (CRUD, methods, sorting, reversing),
│   │                          # Dictionaries (merge, frequency count),
│   │                          # Sets (methods, operations, frozenset)
│   └── Tuples.py             # Tuple basics, packing/unpacking, star expressions,
│                              # methods (count, index), merging tuples
│
│── 📁 FILE HANDLING
│   ├── file_Handling.py      # File modes (r/w/a/x), with statement, pathlib
│   └── Gangadhar.txt         # Sample text file used for file handling practice
│

🧠 Topics Covered

# Topic File(s) Key Concepts
1 Basics & Syntax morax.py, python.py print(), variables, naming conventions (snake_case, camelCase, PascalCase), data types (int, float, str, bool)
2 Input / Output homework.py, Questions.py input(), f-strings, type casting (int(), float(), str())
3 Operators ux.py, Yogurt.py, Homework2.py, Assignment.py Arithmetic (+, -, *, /, //, %, **), comparison (==, >, <, !=), logical (and, or, not)
4 Conditionals control.py, ifelse.py, question3.py if, elif, else, nested conditions, leap year check, vowel detection, voter eligibility
5 Loops loops.py for loops, while loops, range(), break, continue, multiplication tables, Fibonacci series, prime check, palindrome, Armstrong number, guessing game
6 Functions functions.py Function definition, parameters & arguments, return, recursion, string manipulation methods (.upper(), .lower(), .islower(), .isdigit(), .isalpha())
7 Data Structures datastructures.py, Tuples.py Lists — indexing, slicing, append(), insert(), pop(), remove(), reversing, sorting check, palindrome list. Tuples — packing/unpacking, star expressions, count(), index(). Dictionaries — merging, frequency counting. Setsadd(), update(), remove(), discard(), union, intersection, difference, frozenset
8 File Handling file_Handling.py File modes (r, w, a, x), open(), read(), write(), with statement, pathlib.Path

🚀 How to Run

Prerequisites: Python 3.x installed on your machine.

# Clone the repository
git clone https://github.com/ShashwatSingh-Stud/Python.Learn.git

# Navigate into the folder
cd Python.Learn

# Run any script
python <filename>.py

# Examples:
python morax.py          # Start with basics
python loops.py          # Practice loops
python datastructures.py # Explore data structures

Note

Most files contain commented-out code blocks for different exercises. Uncomment the section you want to run and comment out the rest.


🎯 What's Next?

  • Object-Oriented Programming (OOP)
  • Exception Handling (try / except)
  • Modules & Packages
  • List Comprehensions & Lambda Functions
  • Regular Expressions
  • Working with APIs
  • Database Connectivity
  • Mini Projects

🤝 Contributing

This is a personal learning repository, but if you're also learning Python and want to share tips, suggest improvements, or add more exercises — feel free to open an issue or submit a pull request!


📜 License

This project is licensed under the MIT License — see the LICENSE file for details.


Made with ❤️ and a lot of print("debugging") by ShashwatSingh-Stud

⭐ Star this repo if you find it helpful!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages