Skip to content

Amitpnk/python-foundation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-basic

🐍 Learn Python: Beginner to Intermediate

Welcome to the Learn Python repository! This project is a hands-on, example-driven guide designed to help beginners learn Python from the ground up.

🚀 Start coding. Start learning. One folder at a time.


📚 Topics Covered

# Topic Description
01 Hello World Your first Python program
02 Variables and Data Types Strings, numbers, booleans, and more
03 Conditionals if, elif, else
04 Loops for and while loops
05 Functions Defining and calling functions
06 Lists & Tuples Collections in Python
07 Dictionaries & Sets Key-value pairs and unique elements
08 String Operations Manipulating text
09 Exception Handling Try/except blocks
10 File I/O Reading from and writing to files
11 Modules & Packages Organizing code into reusable modules
12 OOP Basics Classes, objects, inheritance
13 List Comprehensions One-liners for list generation
14 Lambda & Higher-Order Funcs lambda, map, filter, reduce
15 Decorators Function wrappers
16 JSON Handling Reading and writing JSON
17 HTTP Requests Calling REST APIs using requests
18 Virtual Environment Isolating project dependencies
19 Unit Testing Writing tests with unittest
20 CLI Tool Create a Python CLI using argparse

🏁 Getting Started

🔧 Prerequisites

  • Python 3.8+
  • pip (Python package installer)

▶️ Run Any Example

cd 03_conditionals
python if_else.py

📦 Recommended Setup

Create a virtual environment:

python -m venv venv
source venv/bin/activate  # macOS/Linux
venv\Scripts\activate     # Windows

pip install -r requirements.txt

🧪 Run Unit Tests

python 19_unit_testing/test_sample.py

🌐 Use the CLI Tool

python 20_cli_tool/cli_greet.py Amit --age 30

🤝 Contributing

Pull requests are welcome! Feel free to:

  • Add new examples
  • Improve existing code
  • Add docstrings or comments

📄 License

This project is licensed under the MIT License.

💡 Author

AmitGitHub

⭐ Star this repo if you find it helpful!

About

A hands-on, beginner-friendly guide to mastering the fundamentals of Python programming.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages