# -*- coding: utf-8 -*-
# @Author: renakeji
# @Date:   2016-11-10 11:56:37
# @Last Modified by:   renakeji
# @Last Modified time: 2016-11-10 14:46:38
#
# 1. range(5) # 0,1,2,3,4
#
# for i in range(5):
#     print(i)
#
# 2.range(5,9) # 5,6,7,8
#
# for i in range(5,9):
#     print(i)
#
# 3.步长 range(5,20,3)
#
# for i in range(5,20,3):
#     print(i)
#
# 4.迭代索引
#
# a = ['Mary','had','a','little']
# for i in range(len(a)):
#     print(i,a[i])
#
# 5.list()
#
print(list(range(5)))