persons = ['laosan', 'laosi', 'laowu','laoliu']

# for in (java  增强for)


# for person in persons:
#     print(person)

sum = 0
# for num in [1,2,3,4,5,6,7,8]:
#     sum = sum+num
# print(sum)

# range 函数
# for num in range(101):
#     sum = sum+num
#
# print(sum)


# while
num = 0
sum = 0
while num <= 100:
    sum = sum + num
    num = num +1
print(sum)

# break continue
