# coding=utf-8
"""
Created on 2018年10月9日

@author: Administrator
"""
age = input("请输入年龄：")
age = int(age)
if age > 20:
    print("长大了")
elif age > 40:
    print("老了")
else:
    print("还小呢")

a = 10
if a > 10:
    pass
else:
    pass

i = 1
total = 0
while i <= 100:
    total += i
    i += 1
print(total)

total = 0
for i in range(1, 101):
    total += i
print(total)

# 所有的序列for循环都可以遍历
for j in "abcdefg":
    print(j)
