Skip to content

Commit 388ebf6

Browse files
author
meshmote
committed
Renamed listlab file
1 parent 211f1f8 commit 388ebf6

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎Students/RPerkins/session03/list_lab.py‎

Whitespace-only changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
basket = ["Apples", "Pears", "Oranges", "Paches"]
2+
print basket
3+
new_fruit = raw_input('Type in the name of another fruit')
4+
basket.append(new_fruit)
5+
print basket
6+
fruit_index = raw_input("Type in the fruit index")
7+
print fruit_index +': ' + basket[fruit_index-1]
8+
new_fruit = raw_input("Type in the name of another fruit")
9+
basket = new_fruit + basket
10+
print basket

0 commit comments

Comments
 (0)