This is a menu-driven Python application that allows users to perform basic arithmetic operations through an interactive command-line interface. The program is designed for simplicity and efficiency, continuing to run until the user explicitly chooses to exit.
The application supports the following operations:
- โ Addition โ Adds two numbers.
- โ Difference โ Calculates the difference between two numbers.
- โ๏ธ Product โ Multiplies two numbers.
- ๐ช Exit โ Ends the program execution.
Note: Each operation is implemented using a separate function to ensure code readability and modular structure.
- Display Menu: A menu is displayed to the user upon launch.
- User Input: The user selects an option by entering a number from 1 to 4.
- Execution: Based on the selection, the corresponding arithmetic operation is performed.
- Looping: The program repeats automatically until the user selects the exit option.
.
โโโ main.py # Core logic and menu interface
โโโ README.md # Project documentation
- Prerequisites: Ensure Python is installed on your system.
- Terminal: Open a terminal, command prompt, or Git Bash.
- Navigate: Move to the directory containing
main.py. - Run: Execute the program using:
python main.py
--- Welcome to Arithmetic Operations Menu ---
--Please select your choice--
1. Addition
2. Difference
3. Product
4. Exit
Enter your choice (1-4):
- Programming Language: ๐ Python
- Execution Environment: ๐ฅ๏ธ Git Bash
- Name: Arpita Keshari
- Program: ๐ IIT Madras BS Degree
- Purpose: ๐ Academic / Workshop Assignment