私はPythonが初めてで、華氏を摂氏に変換するかどうかを選択するPythonプログラムを作成しようとしています。プログラムは次のとおりです。
x = (raw_input("would you like to convert fahrenheit(f) or celsius(c)?"))
if x == "f":
y = (raw_input("what is the fahrenheit?"))
f = (int(y) - 32) * 5.0 / 9
print f
if x == "c":
n = (raw_input("what is the celsius?"))
z = (int(n) *9) / 5 + 32
print "and in fahrenheit, that is:"
print z
に変更しようとしましif x == "c"
たelif x == "c"
が、 になりましたTextError
。何か案は?