# for x in range(0, 5):
#     print('hello')
    
# for x in range(0, 5):
#     print('hello %s' % x)

# wizard_list = ['spider legs', \
# 				'toe of frog', \
# 				'snail tongue', \
# 				'bat wing', \
# 				'slug butter', \
# 				'bear burp']
# for i in wizard_list:
#     print(i)

# print(wizard_list[0])
# print(wizard_list[1])
# print(wizard_list[2])
# print(wizard_list[3])
# print(wizard_list[4])
# print(wizard_list[5])

# hugehairypants = [ 'huge', 'hairy', 'pants' ]
# for i in hugehairypants:
#     print(i)
#     print(i)

# for i in hugehairypants:
#     print(i)
#     for j in hugehairypants:
#         print(j)

# found_coins = 20
# magic_coins = 70
# stolen_coins = 3
# coins = found_coins
# for week in range(1, 53):
#     coins = coins + magic_coins - stolen_coins
#     print('Week %s = %s' % (week, coins))

# tired = False
# badweather = False
# step = 0
# while step < 10:
# 	print(step)
# 	if step == 2:
# 		tired = True
# 		if tired == True:
# 			break
# 	else:
# 		step += 1

# x = 45
# y = 80
# while x < 50 and y < 100:
#     x = x + 1
#     y = y + 1
#     print(x, y)

# exercise
# 1.判断
# for x in range(20):
# 	print('hello {0}'.format(x))
# 	if x < 19:
# 		break

"""2.偶数：用循环来打印偶数，直到你的年龄为止；
如果你的年纪是奇数，就打印奇数直到你的年龄为止。"""
# for i in range(2, 20, 2):
# for i in range(1, 18, 2):
# 	print("我多大了？{0} 岁？".format(i))

# 3.作三明治的食材，用循环打印列表
# ingredients = [ 'snails', 'leeches', \
# 				'gorilla belly-button lint', \
# 				'caterpillar eyebrows', \
# 				'centipede toes' ]
# x = 1
# for i in ingredients:
#     print('第{0}个是{1}。'.format(x, i)) 
#     x = x + 1

# 成分“蜗牛”、“水蛭”、“大猩猩肚脐绒线”、“毛毛虫的眉毛”、“蜈蚣的脚趾”

# 4.在月球上的体重＝地球上的体重×16.5％；
# 每年增长1Kg，15年后你再到月球时的体重？列出每年在月球上的体重
# e_weight = 50
# print("After 15 years you are {0}Kg at the moon.".format(((e_weight + 15) * 0.165)))
# for i in range(15):
# 	e_weight += 1
# 	print("After {0} years you are {1}Kg at the moon.".format((i + 1), (e_weight * 0.165)))

# weight = 50
# for year in range(1, 16):
#     weight = weight + 1
#     moon_weight = weight * 0.165
#     print('Year %s is %s' % (year, moon_weight))










