按照题目中代码自己在电脑敲的,但是最后报错,请问下是哪里出了问题
>>> sum = 0.0
>>> L = [1, 2, 3, 4]
>>> for socre in L:
... sum = sum + score
... print sum / 4
File "<stdin>", line 3
print sum / 4
^
SyntaxError: invalid syntax
请问下是哪里出了问题 谢谢!
>>> sum = 0.0
>>> L = [1, 2, 3, 4]
>>> for socre in L:
... sum = sum + score
... print sum / 4
File "<stdin>", line 3
print sum / 4
^
SyntaxError: invalid syntax
请问下是哪里出了问题 谢谢!
2019-07-11
举报