Skip to content

Commit 697f1ec

Browse files
committed
On branch main
Your branch is up to date with 'origin/main'. Changes to be committed: modified: README.md new file: pop.py
1 parent 13424eb commit 697f1ec

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ chronological list of python files I created for practiced sub project -
1818
11 counter.py
1919
12 insertIntoList.py
2020
13 gettingRid.py - learnt using remove() and del
21-
14
21+
14 pop
22+
15

pop.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
workdays = ["Monday", "Tuesday", "Thursday", "Friday", "Saturday"]
2+
3+
workdays.insert(2, "wednesday")
4+
5+
print(workdays)
6+
7+
popped = workdays.pop(1)
8+
print("we just popped '" + popped + "' out.")
9+
10+
print(workdays)

0 commit comments

Comments
 (0)