<reponame>dander521/Python_Learning<filename>10.19.1/10.19.1/List.py
#coding:utf-8

list1 = ['Google', 'Runoob', 1997, 2000]
list2 = [1, 2, 3, 4, 5]
list3 = ["a", "b", "c", "d"]

print(list1[0])
print(list2[1:2])

list1[1] = 2001

print(list1)

del list1[1]
print(list1)

for x in [1, 2, 3]:
    print(x)

list4 = [1, 1, 1, 1, 2, 2, 3]

print(list4.count(1))

print(list4)


#coding:utf-8

list1 = ['Google', 'Runoob', 1997, 2000]
list2 = [1, 2, 3, 4, 5]
list3 = ["a", "b", "c", "d"]

print(list1[0])
print(list2[1:2])

list1[1] = 2001

print(list1)

del list1[1]
print(list1)

for x in [1, 2, 3]:
    print(x)

list4 = [1, 1, 1, 1, 2, 2, 3]

print(list4.count(1))

print(list4)
#coding:utf-8