试图弄清楚为什么我在第 12 行收到打印语法错误

Trying to Figure out why I get a Print Syntax Error at Line 12

这是一些非常基本的代码,我必须完成我的编程 class 我被困在这里 我收到打印语法错误,尽管我大约 99% 确定打印内容的格式python 2.7.9 是打印 "text here"。请帮助 google 搜索目前对我无济于事,我相信这可能是一个快速解决方案。

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.
   print "Average step rate per minute: ", minTot/stepTot

您在上一行中有不平衡的括号:

min = int(raw_input("Input the next number of minutes (0 to exit): ")