python6
print("MathHomework")
problem = input("Enter a math problem, or 'q' to quit: ")
while (problem != "q"):
print("The answer to ", problem, "is:", eval(problem) )
problem = input("Enter another math problem, or 'q' to quit: ")
problem = input("Enter a math problem, or 'q' to quit: ")
while (problem != "q"):
print("The answer to ", problem, "is:", eval(problem) )
problem = input("Enter another math problem, or 'q' to quit: ")
上一篇:skin to skin 鹿晗
下一篇:Python2
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。