Skip to content

Latest commit

 

History

History
108 lines (86 loc) · 3 KB

File metadata and controls

108 lines (86 loc) · 3 KB

Python Projects for Practice

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.

Projects Included

1. BMI Calculator

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

2. Number Guessing Game

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

3. Rock Paper Scissors Game

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

4. Age Calculator

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

5. Basic Calculator

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

6. Student Result Manager

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

Purpose

  • Practice Python fundamentals
  • Improve problem-solving skills
  • Build small real-world programs
  • Prepare for coding interviews and exams

Technologies Used

  • Python (Core)
  • VS Code (Code editor)