练习题目
给定 [45, 59, 60, 78, 91],只输出大于等于 60 的分数。预期为 60、78、91。
查看参考解法
for score in [45, 59, 60, 78, 91]:
if score >= 60:
print(score)给定 [45, 59, 60, 78, 91],只输出大于等于 60 的分数。预期为 60、78、91。
for score in [45, 59, 60, 78, 91]:
if score >= 60:
print(score)