这是我必须为我的编程类完成的一些非常基本的代码我被困在这里我得到一个打印语法错误虽然我大约99%确定在python 2.7.9中打印的东西的格式是打印"文本在这里".请帮助谷歌搜索目前无济于事,我相信它可能是一个快速的解决方案.
minTot = 0
stepTot = 0
min = int(raw_input("Input the number of minutes (0 to exit): "))
if min == 0:
print "No minutes input."
else:
while min != 0:
minTot = minTot + min
stepRate = int(raw_input("Input the step rate: "))
stepTot = stepTot + stepRate * min
min = int(raw_input("Input the next number of minutes (0 to exit): ")
print "\nTotal number of minutes:", min
print "Total number of steps:", stepTot
# Average is rounded down. …Run Code Online (Sandbox Code Playgroud)