Skip to content

140+ structured Python programs organized by category. Clean code, clear logic, beginner-friendly, and ideal for strengthening core Python fundamentals.

Notifications You must be signed in to change notification settings

Ashwin18-Offcl/Python_Programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 140+ Basic Python Programs

A curated collection of 140+ beginner-to-intermediate Python programs to practice fundamentals, problem-solving, and interview preparation.

Mega Infographic



📑 Table of Contents

  1. Introduction
  2. Folder Structure
  3. How to Run Programs
  4. Programs Summary (Category-wise)
  5. Key Learnings
  6. Technologies Used
  7. Author
  8. License

🔰 Introduction

This repository contains 140+ basic Python programs covering:

  • Input/Output
  • Math & Arithmetic
  • Control Structures
  • Loops
  • Functions
  • Recursion
  • Strings
  • Lists / Arrays
  • Matrices
  • Number Theory
  • Utility Programs
  • Pattern Logic

The purpose of this project is to help beginners build strong foundations in Python logic.


🗂 Folder Structure

Python_Programs/
│
├── README.md
├── assets/
│   └── mega-infographic.png
│
├── programs/
│   ├── 001_hello_python.py
│   ├── 002_arithmetic_operations.py
│   ├── ...
│   └── 140_last_program.py
│
└── docs/
    └── summary_cards.md


## 📌 Project Overview
This repository organizes 140+ Python programs into clear categories (Basics, Control Flow, Functions, Collections, Recursion, Matrices, Number Theory, String Manipulation, Utility Programs, and more). Each program has:
- Clean, commented source code
- Input / output examples
- Short explanation & complexity note (when applicable)

**Source:** *140+ Basic Python Programs* by Piush Kumar Sharma. :contentReference[oaicite:1]{index=1}

---

## 🚩 Author
**Ashwin Panbude**

---

## 🔗 Links (Coded Form)

**Markdown link (replace with your GitHub repo URL):**


[View this repository on GitHub](https://github.com/Ashwin18-Offcl/Python_Programs)
📂 Sections & Example Programs (Section-wise summary)
1. Basics & I/O

Programs: Hello world, input/output examples, simple format printing

Example: 001_hello_python.py

2. Arithmetic & Math Utilities

Programs: Addition, Division, Area of shapes, LCM/HCF, conversions (decimal ↔ binary/hex/oct)

Example: 022_lcm.py

3. Control Flow & Logic

Programs: If-else tasks, leap year, odd/even, prime checks, Armstrong, Disarium, Happy numbers

4. Loops & Patterns

Programs: Multiplication tables, Fibonacci, factorial, number patterns

5. Functions & Recursion

Programs: Recursive Fibonacci, recursive factorial

6. Collections (Lists/Arrays/Matrix)

Programs: Sum/product of list, rotate array, split-and-add, matrix add/multiply/transpose

7. Strings & Text Processing

Programs: Remove punctuation, sort words alphabetically, ASCII values

8. Utility Programs

BMI Calculator, Natural Logarithm, Simple 4-op Calculator, Random number generation

(Each program file is named with a numeric prefix for easy order and navigation.)


▶️ How to Run Programs

Run any program using:

python programs/001_hello_python.py


To run all programs:

python -m programs.<file_name_without_extension>

📚 Programs Summary (Category-wise)

Below is a clean, structured summary of the actual programs found inside the PDF. ✔ Verified.

1️⃣ Basic Python Programs

Programs:
✔ Hello Python
✔ Arithmetic operations (addition, division)
✔ Area of triangle
✔ Swap numbers (temp & without temp)
✔ Random number generation
✔ KM ↔ Miles
✔ Celsius ↔ Fahrenheit
✔ Calendar display

Related Files: 001 – 010
Source Reference: Pages 1–4 

691055957-140-Basic-Python-Prog…

2️⃣ Mathematics & Algebra

Includes:

Quadratic Equation Solver

Natural Logarithm

Cube Sum

Factorial (loop + recursion)

BMI Calculator

Programs: 011 – 032
Reference: Pages 4–12 

691055957-140-Basic-Python-Prog…

3️⃣ Decision Making

Positive/Negative

Odd/Even

Leap Year

Prime Check

All Primes in Interval

Programs: 031 – 040
Reference: Pages 6–8 

691055957-140-Basic-Python-Prog…

4️⃣ Loops

Fibonacci (loop + recursion)

Multiplication Table

Armstrong number

Armstrong numbers in range

Sum of natural numbers

Programs: 041 – 060
Reference: Pages 9–12 

691055957-140-Basic-Python-Prog…

5️⃣ Number Theory (Advanced)

Includes:

✔ Armstrong Numbers
✔ Disarium Numbers
✔ Happy Numbers
✔ Harshad Numbers
✔ Pronic Numbers

Programs: 061 – 080
Reference: Pages 10–15 

691055957-140-Basic-Python-Prog…

6️⃣ Lists / Arrays

Programs include:

Sum of list

Product of list

Smallest / Largest element

Second largest

Find N largest numbers

List rotation

Split & add

Check if monotonic

Programs: 081 – 110
Reference: Pages 21–24 

691055957-140-Basic-Python-Prog…

7️⃣ Matrix Programs

Add Matrix

Multiply Matrix

Transpose Matrix

Programs: 111 – 120
Reference: Pages 24–27 

691055957-140-Basic-Python-Prog…

8️⃣ String Programs

Sort words alphabetically

Remove punctuation

ASCII value of character

Programs: 121 – 130
Reference: Pages 27–29 

691055957-140-Basic-Python-Prog…

9️⃣ Converter Programs

Decimal to Binary / Octal / Hex

Temperature conversions

Distance conversions

Programs: 131 – 140
Reference: Pages 13–15 

691055957-140-Basic-Python-Prog…

🧠 Key Learnings

By completing all 140+ programs, you learn:

✔ Problem Solving
✔ Condition Handling
✔ Loops & Iterations
✔ Recursion
✔ String Manipulation
✔ List & Matrix Concepts
✔ Number Theory
✔ Basic Algorithms
✔ Python Input/Output
✔ Data Processing
💡 Skills Demonstrated

Python Scripting

Logical Reasoning

Clean Code Writing

Program Structuring

Debugging & Testing

Beginner Data Structures

Mathematics with Python

🌐 Technologies Used

Python 3.x

Standard Library

Math Module

Random Module

Calendar Module

👨‍💻 Author

Ashwin Panbude
Data Analyst | Python Instructor | Trainer at Disha Computer Institute

GitHub Repository:

https://github.com/Ashwin18-Offcl/Python_Programs

📜 License
MIT License
Copyright (c) 2025







About

140+ structured Python programs organized by category. Clean code, clear logic, beginner-friendly, and ideal for strengthening core Python fundamentals.

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages