Python で非常に単純な加算計算機を作成しました。
#This program will add two numbers entered in by the user
print "Welcome!"
num1 = input("Please enter in the first number to be added.")
num2 = input("Please enter in the second number to be added.")
sum = num1 + num2
print "The sum of the two numbers entered is: ", sum
まだ python をセットアップしていないので、codepad.org (オンライン コンパイラ) を使用しています。
次のエラーが表示されます。
Welcome!
Please enter in the first number to be added.
Traceback (most recent call last):
Line 5, in <module>
num1 = input("Please enter in the first number to be addeded.")
EOFError