#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
__author__ = xiaofei.ding
@time: 2017-1126 21:53
"""

# var1 = 1
# var2 = 10l
# var3 = 0.1
# print type(var1), type(var2), type(var3)

# str = 'Hello World!'
#
# print str
# print str[0]
# print str[2:5]
# print str[2:]
# print str * 2
# print str + "TEST"


list = ['runoob', 786, 2.23, 'john', 70.2]
tinylist = [123, 'john']

list.append(30)
list[2] = 30
print list
# print list[1:3]
# print list[2:]
# print list[2:0], list[2:len(list)]
# print tinylist * 2
# print list + tinylist

# tuple = ('runoob', 786, 2.23, 'john', 70.2)
# tinytuple = (123, 'john')
#
# print tuple[0]
# print tuple[1:3]
# print tuple[2:]
# print tinytuple * 2
# print tuple + tinytuple

# dict_ = {}
# dict_['one'] = "This is one"
# dict_[2] = "This is two"
#
# tinydict = {'name': 'john', 'code': 6734, 'dept': 'sales'}
#
# print dict_['one']
# print dict_[2]
# print tinydict
# print tinydict.keys(), type(tinydict.keys())
# print tinydict.values()


# print list()
# print tuple()
# print dict()


def hello_world():
    print 'hello world!'


if __name__ == '__main__':
    # hello_world()
    pass
