CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
jackfrued

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/Day01-15/code/Day04/for2.py
Views: 729
1
"""
2
用for循环实现1~100之间的偶数求和
3
4
Version: 0.1
5
Author: 骆昊
6
Date: 2018-03-01
7
"""
8
9
sum = 0
10
for x in range(2, 101, 2):
11
sum += x
12
print(sum)
13
14