#! usr/bin/python
import sys
def explain(nameofme):
print "Das ist nur ein Test!"
#print "Addition = " + nameofme + "1 + 2 Result = 3"
#print "Subtraktion : " +nameofme+ "1 - 2 Result = -1"
#print "Division : " +nameofme+ "1 / 2 Result = 0.5"
#print "Multiplication : " +nameofme+ "1 * 2 Result = 2"
def Calc(erstezahl,zeichen,zweitezahl):
print "Result : "
if zeichen == '+':
print (erstezahl + zweitezahl)e
elif zeichen == '-':
print(erstezahl - zweitezahl)
elif zeichen == '/':
print (erstezahl / zweitezahl)
else: zeichen == '*':
print (erstezahl * zweitezahl)
return
print ('\n######################################')
print ('\n### Easy Calculator by Chillerz
###')
print ('\n######################################')
if len(sys.argv) != 4:
explain(sys.argv[0])
else:
Calc(sys.argv[1],sys.argv[2],sys.argv[3])
exit(0)