Skip to content

Commit fa327cc

Browse files
committed
Initial Commit
1 parent 0a43c3d commit fa327cc

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

L2-8_watch_lists.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# L2-8
2+
# 9-20-20
3+
4+
l = [23, 67, 9, 0, 'Joe']
5+
print(l)
6+
l.append(45)
7+
l.append(75)
8+
l.pop()
9+
print(l)

L2-9_the_list.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# 2_7
2+
# 9-20-20
3+
the_list = []
4+
the_list.append('345')
5+
the_list.append(987)
6+
the_list.append('Python eats the world')
7+
print(the_list)
8+
print(the_list[-1])
9+
print(the_list[-2])
10+
the_list.pop()
11+
print(the_list)
12+
del the_list[1]
13+
print(the_list)
14+
the_list.append('Bob')
15+
print(the_list)
16+
the_list.remove('Bob')
17+
print(the_list)

0 commit comments

Comments
 (0)