A collection of Python practice programs completed to build strong foundations in logic-building, loops, functions, lists, and strings.
This repository contains beginner-friendly exercises organized level-wise.
python-practice/ │
├── level1/ # Basics: variables, input, operators
├── level2/ # Conditionals
├── level3/ # Loops
├── level4/ # Patterns
├── level5/ # Lists
├── level6/ # Strings
├── level7/ # Functions
└── README.md
- Print statements
- Variables & data types
- Taking user input
- Basic arithmetic operations
- if / elif / else
- Divisibility checks
- Vowel or consonant
- Leap year program
- for loop, while loop
- Reverse a number
- Palindrome (without functions)
- Basic numeric patterns
Examples:
1
12
123
1234
- Traversing lists
- Sum of elements
- Reverse list manually
- Count occurrences
- Find max/min manually
- Count uppercase/lowercase letters
- Remove spaces
- Reverse string
- Palindrome check
- Character frequency
- Even/odd function
- Factorial with function
- Fibonacci series function
- Passing list to function
To build a strong foundation in Python programming and logic-building through structured practice.
- Clone this repository:
git clone https://github.com/<your-username>/<repo-name>.git
Open any level folder.
Run any Python file:
python filename.py