This commit is contained in:
Barak Michener 2019-02-04 15:57:54 -08:00
parent c013387b96
commit 346da23927
3 changed files with 28 additions and 9 deletions

View file

@ -1,11 +1,11 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys
loadfile = sys.stdin
if len(sys.argv) == 1:
print "No command to run"
print("No command to run")
sys.exit(1)
if len(sys.argv) == 3:
@ -26,7 +26,7 @@ def div(x,y):
lis = []
for line in loadfile:
if line.strip() <> "":
if line.strip() is not "":
x = float(line)
lis.append(x)