A python calculator project to be cloned by CS 190 students
-
Clone this repository.
-
Allow execution of the
calc.pyfile:$ chmod a+x ./calc.py -
Execute
calc.py:$ ./calc.pyor
$ python calc.py -
Follow the instructions. Input the first number, then the operator symbol, then the second number. The result is displayed. (See Supported Operations)
| operator | function |
|---|---|
| + | addition |
| - | subtraction |
| * | multiplication |
| / | division |
See License.