I'm doing a simple calculation again.
import sys
a = float(sys.argv[1])
b = float(sys.argv[2])
c = float(sys.argv[3])
if a == str or b == str or c == str:
print 'Your input is invalid'
else:
print 'Average: %.2f ' % ((a + b + c) / 3)
or
import sys
a = float(sys.argv[1])
b = float(sys.argv[2])
c = float(sys.argv[3])
if a != float(sys.argv[1]) or b =! float(sys.argv[2]r or c =! float(sys.argv[3])
print 'Your input is invalid'
else:
print 'Average: %.2f ' % ((a + b + c) / 3)