This repository contains a collection of Basic Python projects created for learning and practice purposes.
The goal of this repository is to strengthen core programming concepts and build a solid foundation in Python.
A simple program that calculates Body Mass Index (BMI) using user input.
Features:
- Takes height (in meters) and weight (in kilograms)
- Calculates BMI using formula:
BMI = weight / (height²) - Displays health category:
- Underweight
- Normal weight
- Overweight
- Obese
A simple interactive game where the user tries to guess a randomly generated number.
Features:
- Generates a random number between 1 and 100
- Allows multiple attempts until the correct guess
- Provides hints:
- Too low
- Too high
- Displays the number of attempts taken to guess correctly
A simple interactive game where the user plays Rock, Paper and Scissors against the computer until they choose to quit.
Features:
- Allows unlimited rounds of gameplay
- User can exit the game anytime by typing
quit - Computer randomly selects between rock, paper and scissor
- Displays result after each round:
- Win
- Lose
- Draw
- Keeps track of user and computer scores
- Shows final result after the game ends
A simple program that calculates the current age of a person using their date of birth.
Features:
- Takes user input for birth date (year, month, day)
- Calculates age in:
- Years
- Months
- Days
- Handles invalid inputs using error checking
- Prevents future date of birth entries
- Accurately adjusts days and months based on calendar
- Displays the current age as output
A simple calculator program that performs various mathematical operations using a user-friendly menu system.
Features:
- Provides a menu-driven interface with options (1–9)
- Performs basic operations:
- Addition
- Subtraction
- Multiplication
- Division
- Supports advanced operations:
- Floor Division
- Modulus
- Exponentiation
- Square Root
- Runs continuously using a loop until the user chooses to exit
- Displays result instantly after each operation
A simple program that manages student records and evaluates their results using a menu-driven system.
Features:
- Takes user input for student details (name and marks)
- Allows operations like:
- Add student details
- View all student records
- Check student result (Pass/Fail)
- Update student marks
- Delete student records
- Implements a grading system:
- A+, A, B, C and F based on marks
- Handles invalid inputs using error checking (
try-except) - Displays updated results instantly after each operation
- Practice Python fundamentals
- Improve problem-solving skills
- Build small real-world programs
- Prepare for coding interviews and exams
- Python (Core)
- VS Code (Code editor)