Skip to content

jonhandy/itp-w1-basic-calculator

 
 

Repository files navigation

[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'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.2%
  • Makefile 16.8%