Mini project from Coursera Python course
🎓 Course: Programming for Everybody (Getting Started with Python)
🏛️ Platform: Coursera – University of Michigan
👨🏫 Instructor: Dr. Charles Severance (Dr. Chuck)
👩💻 Student: Shivasankari V A
🗂️ GitHub: @shivasankari27
This is a beginner-friendly command-line calculator built in Python. It was developed as my first project after completing the Coursera course "Programming for Everybody". The goal was to apply what I learned about functions, loops, and user interaction in a real-world context.
The calculator supports a wide range of arithmetic operations and is designed for repeated, interactive use in the terminal.
- ✅ Addition
- ✅ Subtraction
- ✅ Multiplication
- ✅ Division (with zero-check)
- ✅ Modulus (%)
- ✅ Power (Exponentiation)
- ✅ Floor Division (//)
- 🔁 Continuous use with a
whileloop - 🧠 Clean and modular code structure
- How to define reusable functions in Python
- Implementing loops to create interactive applications
- Taking and validating user input
- Preventing runtime errors (e.g., dividing by zero)
- Writing clean, readable, and modular code
- 🐍 Python 3.13.3
- 💻 Visual Studio Code / Replit
- 🗃 Git & GitHub (Version control)
To run this calculator:
- Make sure Python 3 is installed on your computer
- Clone this repository or download the
calculator.pyfile - Open your terminal or command prompt
- Navigate to the directory containing the file
- Run the program using:
python calculator.py