Skip to content

Commit 7dd833e

Browse files
author
meshmote
committed
Finished first action tasks and started second
1 parent abface1 commit 7dd833e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎Students/RPerkins/session03/listlab.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@
1414
new_fruit = raw_input("Type in the name of another fruit-->")
1515
fruit = str(new_fruit)
1616
basket.insert(0, fruit)
17+
print basket
18+
for i in range(len(basket)):
19+
if basket[i][0] == "P":
20+
print basket[i]
21+
print basket
22+
basket.pop()
1723
print basket

0 commit comments

Comments
 (0)