We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53b5e09 commit 6d0ff70Copy full SHA for 6d0ff70
2 files changed
source-code/command-line-arguments/Fire/calculations.py
@@ -0,0 +1,14 @@
1
+def add(x, y):
2
+ return x + y
3
+
4
+def sub(x, y):
5
+ return x - y
6
7
+def mult(x, y):
8
+ return x*y
9
10
+def div(x, y):
11
+ return x/y
12
13
+def mod(x, y):
14
+ return x % y
source-code/command-line-arguments/Fire/calculator.py
@@ -1,13 +1,7 @@
#!/usr/bin/env python
import fire
-
-def add(x, y):
- return x + y
-def mult(x, y):
- return x*y
+import calculations
if __name__ == '__main__':
- fire.Fire()
+ fire.Fire(calculations)
0 commit comments