Skip to content

mhd-haarish07/python-basic-program-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Basic Programs 🐍

A collection of 50+ beginner-friendly Python programs, each written as a standalone .py file. Perfect for practicing core concepts, prepping for exams/interviews, or just learning Python from scratch.

📂 Repository Structure

python-basic-programs/
├── 01_numbers/            # 20 programs — math & number logic
├── 02_strings/             # 10 programs — string manipulation
├── 03_lists/                # 10 programs — lists, searching, sorting
├── 04_patterns/          # 3 programs  — star & number patterns
├── 05_matrices/           # 2 programs  — matrix operations
├── 06_oop_functions/  # 5 programs  — OOP, recursion, exceptions
└── README.md

🚀 How to Run

Clone the repo and run any program directly:

git clone https://github.com/<your-username>/python-basic-programs.git
cd python-basic-programs
python3 01_numbers/07_check_prime.py

Requires Python 3.6+ (uses f-strings). No external libraries needed except the built-in collections module used in one file.

🎯 Who This Is For

  • Students learning Python fundamentals
  • Anyone preparing for basic coding interviews or lab exams
  • Instructors looking for ready-made practice examples

🤝 Contributing

Pull requests are welcome! If you'd like to add a new basic program, follow the existing naming convention (NN_description.py) and place it in the relevant category folder.

📄 License

Free to use for learning and educational purposes.

About

50+ basic Python programs for beginners — covering numbers, strings, lists, patterns, matrices, OOP, and recursion, each in its own file with sample output.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages