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