理解并掌握:循环求和。本课不是占位内容,示例和练习都围绕这个知识点。
total = 0 for i in range(1, 101): total += i print(total)
请根据本课知识,自己写一段包含检查点的代码。
检查点:print, for, 循环