'''
Created on 2016年7月27日

@author: Administrator
'''

names = ['Michael', 'Bob', 'Tracy']
for name in names:
    print(name)
    
#range(101)就可以生成0-100的整数序列
sum = 0
for x in range(101):
    sum = sum + x
print(sum)

#while循环
sum = 0
n = 99
while n > 0:
    sum = sum + n
    n = n - 2
print(sum)