//test.py
list1 = [1, 2, 3]
list2 = [4, 5, 6]
print cmp(list1, list2)
print len(list1), len(list2)
print max(list1), max(list2)
print min(list1), min(list2)
seq = (7, 8, 9)
print seq
seql = list(seq)
seql.append(10)
print seql
print seql.count(3)
seql.extend(list1)
print seql
print seql.index(1)
seql.insert(4, 17)
print seql
print seql.pop()
seql.remove(17)
print seql
seql.reverse()
print seql
seql.sort()
print seql
list3 = [0]
print list3
tup1 = (30,)
print tup1
print tup1[0]
tup2 = (1, 2, 3)
tup3 = (4,)
tup4 = tup2+tup3
print tup4
print ('Hello, World!')*2
print 2 in tup2
for x in tup2:
print x
print tup2[-2]
x,y = 1, 2
print x,y
print '1', '2', '3'
ch = [12, 23, 34]
print ch
print tuple(ch)
//result
# python test.py
-1
3 3
3 6
1 4
(7, 8, 9)
[7, 8, 9, 10]
0
[7, 8, 9, 10, 1, 2, 3]
4
[7, 8, 9, 10, 17, 1, 2, 3]
3
[7, 8, 9, 10, 1, 2]
[2, 1, 10, 9, 8, 7]
[1, 2, 7, 8, 9, 10]
[0]
(30,)
30
(1, 2, 3, 4)
Hello, World!Hello, World!
True
1
2
3
2
1 2
1 2 3
[12, 23, 34]
(12, 23, 34)