Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 623 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 623 Bytes

[itp-w1] Basic Calculator

Our second group project will be to create a program that acts as a basic four function calculator. If the operation is not add, subtract, multiply, or divide, it needs to return 'Invalid operation'

All students will fork this repo and set up their cloud9 for this project individually with guidance from the mentor.

We will want the following interface:

>>> basic_calculator(1, 7, 'add')
8
>>> basic_calculator(5, 2, 'subtract')
3
>>> basic_calculator(3, 4, 'multiply')
12
>>> basic_calculator(12, 3, 'divide')
4
>>> basic_calculator(3, 4, 'what')
'Invalid operation'