forked from edyoda/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlists.py
More file actions
74 lines (43 loc) · 647 Bytes
/
lists.py
File metadata and controls
74 lines (43 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
l = ['sddf', 4, 5.7, 36, 78]
#print l
m = ['sddf', 4, 5.6, 47]
# print m[0]
# m[0]=8
# print m
# if 7 not in m:
# print "yes"
# del(m[0])
# print m
# print l[:-1]
# del(l[1:3])
# print l
# print l
l+=m
print l
m = ['abc', 4, 5.6, 47]
print m*3
# print len(l)
# l[3]='third'
# l[1:5]=['our']
# print l
# l.append(789)
# print l
# print l.count(4)
# l.extend(m)
# print l
# print l
# print l.index(78, 0, 5)
# l.insert(2,'second')
# print l
# l.pop(7)
# print l
# l.remove(4)
# print l
# l.sort(reverse = True)
# print l
# n = [1,2,3.4,[5,6,8.7]]
# print n
# print n[3][2]
k = (1,4,'ghj')
print k
print repr(k)