A curated collection of 140+ beginner-to-intermediate Python programs to practice fundamentals, problem-solving, and interview preparation.
- Introduction
- Folder Structure
- How to Run Programs
- Programs Summary (Category-wise)
- Key Learnings
- Technologies Used
- Author
- License
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.
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
