<分区>
我是个初学者,一直在看http://en.wikibooks.org/wiki/Python_Programming/Conditional_Statements但我不明白这里的问题。这很简单,如果用户输入 y 它应该打印这将进行计算,尽管我在 IF answer=="y"上遇到语法错误
answer = str(input("Is the information correct? Enter Y for yes or N for no"))
proceed="y" or "Y"
If answer==proceed:
print("this will do the calculation"):
else:
exit()